-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Sample: https://radio.dripfeed.net/listen/monstromental/radio.mp3
HTTP/2 200
server: nginx
date: Sun, 26 Feb 2023 19:57:38 GMT
content-type: audio/mpeg
pragma: no-cache
expires: Thu, 19 Nov 1981 08:52:00 GMT
cache-control: no-store, no-cache, private
vary: Origin
icy-br: 128
ice-audio-info: channels=2;samplerate=44100;bitrate=128
icy-description: Pulp Horror Instro Surf
icy-genre: Horror
icy-name: MONSTROMENTAL
icy-pub: 1
icy-url: https://www.monstromental.com
x-xss-protection: 1
x-content-type-options: nosniff
referrer-policy: no-referrer-when-downgrade
Also: https://stream.camfm.co.uk/camfm
HTTP/1.1 200 OK
Content-Type: audio/mpeg
Date: Sun, 26 Feb 2023 19:59:40 GMT
Server: Icecast 2.4.0-kh13
Cache-Control: no-cache, no-store
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Origin, Accept, X-Requested-With, Content-Type
Access-Control-Allow-Methods: GET, OPTIONS, HEAD
Connection: Close
Expires: Mon, 26 Jul 1997 05:00:00 GMT
console.log(response.headers['content-type']);
^
TypeError: Cannot read properties of undefined (reading 'content-type')
But rawHeaders exist for these streams:
[
'Content-Type',
'audio/mpeg',
'Date',
'Sun, 26 Feb 2023 20:05:49 GMT',
'Server',
'Icecast 2.4.0-kh13',
'Cache-Control',
'no-cache, no-store',
'Access-Control-Allow-Origin',
'*',
'Access-Control-Allow-Headers',
'Origin, Accept, X-Requested-With, Content-Type',
'Access-Control-Allow-Methods',
'GET, OPTIONS, HEAD',
'Connection',
'Close',
'Expires',
'Mon, 26 Jul 1997 05:00:00 GMT',
'icy-metaint',
'16000'
]
[
'Server',
'nginx',
'Date',
'Sun, 26 Feb 2023 20:05:13 GMT',
'Content-Type',
'audio/mpeg',
'Transfer-Encoding',
'chunked',
'Connection',
'close',
'Pragma',
'no-cache',
'Expires',
'Thu, 19 Nov 1981 08:52:00 GMT',
'Cache-Control',
'no-store, no-cache, private',
'Vary',
'Origin',
'icy-br',
'128',
'ice-audio-info',
'channels=2;samplerate=44100;bitrate=128',
'icy-description',
'Pulp Horror Instro Surf',
'icy-genre',
'Horror',
'icy-name',
'MONSTROMENTAL',
'icy-pub',
'1',
'icy-url',
'https://www.monstromental.com',
'icy-metaint',
'16000',
'X-XSS-Protection',
'1',
'X-Content-Type-Options',
'nosniff',
'Referrer-Policy',
'no-referrer-when-downgrade'
]
The application/ogg stream I've been testing against works fine, it's specifically audio/mpeg streams that fail.
Metadata
Metadata
Assignees
Labels
No labels