From: Sergey M․ Date: Fri, 18 Mar 2016 15:50:44 +0000 (+0600) Subject: [extractor/generic] Force Content-Type to lowecase X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=955737b2d40c0ce947c13659a27aae0c41077c65;p=youtube-dl [extractor/generic] Force Content-Type to lowecase --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index b75db1252..cce7799e2 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -1248,7 +1248,7 @@ class GenericIE(InfoExtractor): } # Check for direct link to a video - content_type = head_response.headers.get('Content-Type', '') + content_type = head_response.headers.get('Content-Type', '').lower() m = re.match(r'^(?Paudio|video|application(?=/(?:ogg$|(?:vnd\.apple\.|x-)?mpegurl)))/(?P[^;\s]+)', content_type) if m: upload_date = unified_strdate(