From 188d907e103bc3b4737be2a788801a90ecfe1133 Mon Sep 17 00:00:00 2001 From: Bas Stottelaar Date: Mon, 12 May 2014 11:02:25 +0200 Subject: [PATCH] GET, POST, HEAD etc are in lower case in requests.py --- headphones/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/request.py b/headphones/request.py index 9892592e..bbb517a9 100644 --- a/headphones/request.py +++ b/headphones/request.py @@ -19,7 +19,7 @@ def request_response(url, method="get", auto_raise=True, whitelist_status_code=N # Map method to the request.XXX method. This is a simple hack, but it allows # requests to apply more magic per method. See lib/requests/api.py. - request_method = getattr(requests, method) + request_method = getattr(requests, method.lower()) try: # Request the URL