fix for #160
authorKenneth Reitz <me@kennethreitz.com>
Wed, 14 Sep 2011 12:34:36 +0000 (08:34 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Wed, 14 Sep 2011 12:34:36 +0000 (08:34 -0400)
AUTHORS
requests/api.py

diff --git a/AUTHORS b/AUTHORS
index ceba48735e0cdb692e482fcefbac7731b2a36049..af00b19e01db17017a530b3eee7fdfa07e290cbc 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -44,3 +44,4 @@ Patches and Suggestions
 - Johan Bergström
 - Josselin Jacquard
 - Mike Waldner
+- Serge Domkowski
\ No newline at end of file
index 102bc756a1bc082f1a5645f747a8c9f82950dd47..60d0d85262ed87b97df8613d43a1f4559b909021 100644 (file)
@@ -17,10 +17,10 @@ from .status_codes import codes
 from .hooks import dispatch_hook
 from .utils import cookiejar_from_dict, header_expand
 
-from urlparse import urlparse
 
 __all__ = ('request', 'get', 'head', 'post', 'patch', 'put', 'delete')
 
+
 def request(method, url,
     params=None, data=None, headers=None, cookies=None, files=None, auth=None,
     timeout=None, allow_redirects=False, proxies=None, hooks=None):
@@ -88,7 +88,6 @@ def request(method, url,
 
 
 def get(url, **kwargs):
-
     """Sends a GET request. Returns :class:`Response` object.
 
     :param url: URL for the new :class:`Request` object.
@@ -144,7 +143,7 @@ def patch(url, data='', **kwargs):
     :param **kwargs: Optional arguments that ``request`` takes.
     """
 
-    return request('patch', url, **kwargs)
+    return request('patch', url, data=data, **kwargs)
 
 
 def delete(url, **kwargs):