diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-03-18 21:50:44 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-03-18 21:50:44 +0600 |
commit | 955737b2d40c0ce947c13659a27aae0c41077c65 (patch) | |
tree | 05f614a01b2e9b2360447530a0d0e7694f913800 /youtube_dl/extractor | |
parent | 263eff9537c73caa9bff42b1e675043eaa124f9a (diff) |
[extractor/generic] Force Content-Type to lowecase
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/generic.py | 2 |
1 files changed, 1 insertions, 1 deletions
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'^(?P<type>audio|video|application(?=/(?:ogg$|(?:vnd\.apple\.|x-)?mpegurl)))/(?P<format_id>[^;\s]+)', content_type) if m: upload_date = unified_strdate( |