mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-23 19:55:38 +01:00
http: remove range because we dont need it all the time
for some reason once you set it, it will be in every request after it.
This commit is contained in:
parent
924cc0dd50
commit
471e4d6063
@ -41,6 +41,9 @@ class HTTP(Session):
|
||||
if headers:
|
||||
for i in headers.keys():
|
||||
self.headers[i] = headers[i]
|
||||
else:
|
||||
if "Range" in self.headers: # for some reason headers is always there for each request
|
||||
del self.headers["Range"] # need to remove it because we dont want it
|
||||
logging.debug("HTTP getting %r", url)
|
||||
res = Session.request(self, method, url, verify=self.verify, proxies=self.proxy, *args, **kwargs)
|
||||
return res
|
||||
|
Loading…
Reference in New Issue
Block a user