aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorJohannes Knoedtel <johannes@dev-baron.de>2015-01-12 22:26:20 +0100
committerJohannes Knoedtel <johannes@dev-baron.de>2015-01-12 22:38:51 +0100
commit3d5f7a3947a8d304bc7ad46217f171996e95c475 (patch)
treebefbc18ebfca767bc61631ceb0a5d4bdf535a162 /youtube_dl/extractor
parenta5fb718c50d394aeee827f6e9381eceb839128de (diff)
downloadyoutube-dl-3d5f7a3947a8d304bc7ad46217f171996e95c475.tar.xz
[utils] Prevent override of custom headers.
The dict of headers of request objects in urllib has its keys always capitalized. This causes the lookup to fail and overwrite the header. If for example a Extractor tries to add a "User-Agent" header the internal representation in the request object is "User-agent". The header is therefore clobbered by the "User-Agent" in std_headers, because the strings are not equal.
Diffstat (limited to 'youtube_dl/extractor')
0 files changed, 0 insertions, 0 deletions