mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +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:
|
try:
|
||||||
fd = urllib2.urlopen(req, data=data)
|
fd = urllib2.urlopen(req, data=data)
|
||||||
|
finally:
|
||||||
except urllib2.HTTPError:
|
conf.cookiejar.save(ignore_discard=True)
|
||||||
# make sure that cookies are saved nevertheless
|
|
||||||
if hasattr(conf.cookiejar, 'save'):
|
|
||||||
conf.cookiejar.save(ignore_discard=True)
|
|
||||||
# handle the exception elsewhere
|
|
||||||
raise
|
|
||||||
|
|
||||||
if filefd: filefd.close()
|
if filefd: filefd.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user