From 28ee9788a071ac1314ed920ab5cb4af74ceee307 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 20 Aug 2011 22:51:24 -0400 Subject: [PATCH] Request --- requests/api.py | 2 +- requests/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requests/api.py b/requests/api.py index 5ded386c..0928d8c8 100644 --- a/requests/api.py +++ b/requests/api.py @@ -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 = {} diff --git a/requests/models.py b/requests/models.py index 92335181..41214816 100644 --- a/requests/models.py +++ b/requests/models.py @@ -424,7 +424,7 @@ class Response(object): #: up here. self.history = [] - #: The Request that created the Response. + #: The :class:`Request ` that created the Response. self.request = None #: A dictionary of Cookies the server sent back.