projects
/
platform
/
upstream
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ba83c4
)
fixed #1723
author
daftshady
<daftonshady@gmail.com>
Mon, 4 Nov 2013 09:32:45 +0000
(18:32 +0900)
committer
daftshady
<daftonshady@gmail.com>
Mon, 4 Nov 2013 09:33:14 +0000
(18:33 +0900)
requests/api.py
patch
|
blob
|
history
diff --git
a/requests/api.py
b/requests/api.py
index
baf43dd
..
33b7b2a
100644
(file)
--- a/
requests/api.py
+++ b/
requests/api.py
@@
-12,7
+12,7
@@
This module implements the Requests API.
"""
from . import sessions
-
+from .compat import builtin_str
def request(method, url, **kwargs):
"""Constructs and sends a :class:`Request <Request>`.
@@
-41,7
+41,7
@@
def request(method, url, **kwargs):
"""
session = sessions.Session()
- return session.request(method=
method
, url=url, **kwargs)
+ return session.request(method=
builtin_str(method)
, url=url, **kwargs)
def get(url, **kwargs):