diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-07 18:34:37 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-07 18:34:37 +0200 |
commit | 6120747c2e124a529cc85d3261fc343ad7d54ddf (patch) | |
tree | 3f50121553adaf234776461d4f404029c0374e01 /pyload/network | |
parent | Merge branch 'pr/n1156_ItachiSan' into 0.4.10 (diff) | |
download | pyload-6120747c2e124a529cc85d3261fc343ad7d54ddf.tar.xz |
Update user-agent
Diffstat (limited to 'pyload/network')
-rw-r--r-- | pyload/network/HTTPRequest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyload/network/HTTPRequest.py b/pyload/network/HTTPRequest.py index b1352bd6b..49d1d042e 100644 --- a/pyload/network/HTTPRequest.py +++ b/pyload/network/HTTPRequest.py @@ -74,7 +74,8 @@ class HTTPRequest(object): #self.c.setopt(pycurl.VERBOSE, 1) self.c.setopt(pycurl.USERAGENT, - "Mozilla/5.0 (Windows NT 6.1; Win64; x64;en; rv:5.0) Gecko/20110619 Firefox/5.0") + "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0") + if pycurl.version_info()[7]: self.c.setopt(pycurl.ENCODING, "gzip, deflate") self.c.setopt(pycurl.HTTPHEADER, ["Accept: */*", |