mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-25 19:52:12 +01:00
- enable cookies to speed up the auth process - I don't know why it was disabled at all but it was probably due to #378421 ("http cookie errors with osc") but this is already resolved
- this should fix #477690 ("osc fetching binaries really slow")
This commit is contained in:
parent
404ecd7444
commit
471f81b7f2
@ -1476,13 +1476,8 @@ def http_request(method, url, headers={}, data=None, file=None):
|
||||
|
||||
try:
|
||||
fd = urllib2.urlopen(req, data=data)
|
||||
|
||||
except urllib2.HTTPError:
|
||||
# make sure that cookies are saved nevertheless
|
||||
if hasattr(conf.cookiejar, 'save'):
|
||||
conf.cookiejar.save(ignore_discard=True)
|
||||
# handle the exception elsewhere
|
||||
raise
|
||||
finally:
|
||||
conf.cookiejar.save(ignore_discard=True)
|
||||
|
||||
if filefd: filefd.close()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user