mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
avoid putting "extra_http_headers" in params if value is None (because "in" operator would return true)
This commit is contained in:
parent
a04bf04307
commit
060b796d78
@ -34,8 +34,9 @@ class BrozzlerWorker:
|
||||
"noprogress": True,
|
||||
"nopart": True,
|
||||
"no_color": True,
|
||||
"extra_http_headers": site.extra_headers,
|
||||
}
|
||||
if site.extra_headers:
|
||||
ydl_opts["extra_http_headers"] = site.extra_headers
|
||||
if site.proxy:
|
||||
ydl_opts["proxy"] = "http://{}".format(site.proxy)
|
||||
## XXX (sometimes?) causes chrome debug websocket to go through
|
||||
|
Loading…
x
Reference in New Issue
Block a user