mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Request
This commit is contained in:
+1
-1
@@ -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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user