forked from pool/python-urlgrabber
This commit is contained in:
committed by
Git OBS Bridge
parent
67d914d3a4
commit
4be2c5ac51
12
python-urlgrabber-3.1.0.patch
Normal file
12
python-urlgrabber-3.1.0.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
--- urlgrabber/grabber.py
|
||||
+++ urlgrabber/grabber.py
|
||||
@@ -686,6 +686,9 @@
|
||||
user_pass, host = host.split('@', 1)
|
||||
if ':' in user_pass:
|
||||
user, password = user_pass.split(':', 1)
|
||||
+ else:
|
||||
+ user = user_pass
|
||||
+ password = ''
|
||||
except ValueError, e:
|
||||
raise URLGrabError(1, _('Bad URL: %s') % url)
|
||||
if DEBUG: DEBUG.info('adding HTTP auth: %s, %s', user, password)
|
Reference in New Issue
Block a user