Make Accept headers py 2.6 compatible
parent
66c6dcf203
commit
8b3062eaa2
2
morss.py
2
morss.py
|
@ -241,7 +241,7 @@ class SimpleDownload(urllib2.HTTPCookieProcessor):
|
|||
if not self.strict:
|
||||
out['*/*'] = rank-0.1
|
||||
|
||||
string = ','.join([x+';q={:.1}'.format(out[x]) if out[x] != 1 else x for x in out])
|
||||
string = ','.join([x+';q={0:.1}'.format(out[x]) if out[x] != 1 else x for x in out])
|
||||
log(string)
|
||||
|
||||
req.add_unredirected_header('Accept', string)
|
||||
|
|
Loading…
Reference in New Issue