This commit is contained in:
Kenneth Reitz
2011-08-20 22:51:24 -04:00
parent 596aceb185
commit 28ee9788a0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ def request(method, url,
:param proxies: (optional) Dictionary mapping protocol to the URL of the proxy.
"""
method = method.upper()
method = str(method).upper()
if cookies is None:
cookies = {}
+1 -1
View File
@@ -424,7 +424,7 @@ class Response(object):
#: up here.
self.history = []
#: The Request that created the Response.
#: The :class:`Request <Request>` that created the Response.
self.request = None
#: A dictionary of Cookies the server sent back.