A feature-rich command-line audio/video downloader
[utils] Fix getheader in urlhandle_detect_ext
Yen Chi Hsuan79298173c5a9
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.pyindex a637563cb8..24e74428b0 100644--- a/youtube_dl/utils.py+++ b/youtube_dl/utils.py@@ -2031,11 +2031,7 @@ def mimetype2ext(mt):def urlhandle_detect_ext(url_handle):- try:- url_handle.headers- getheader = lambda h: url_handle.headers[h]- except AttributeError: # Python < 3- getheader = url_handle.info().getheader+ getheader = url_handle.headers.getcd = getheader('Content-Disposition')if cd: