Skip to content
Myr

add doseq to urlencode in model._encode_params to enable list as dict value

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Xu Pan · committed by Xu Pan · parent 787110c · Browse files · 2 files+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−2 removed

  • other:+3 added−2 removed

2 files+3 added−2 removed

modified:requests/models.py+1 added-1 removed
228 unmodified lines
229 result = {}230 for (k, v) in data.items():231 result[k.encode('utf-8') if isinstance(k, unicode) else k] \232 = v.encode('utf-8') if isinstance(v, unicode) else v233 return result, urllib.urlencode(result)233 return result, urllib.urlencode(result, doseq=True)234 else:235 return data, data236237
316 unmodified lines
modified:AUTHORS+2 added-1 removed
24 unmodified lines
25- Daniele Tricoli 'Eriol'26- Richard Boulton27- Miguel Olivares <miguel@moliware.com>28- Alberto Paro29- Jérémy Bethmont29- Jérémy Bethmont30- 潘旭 (Xu Pan)