GET, POST, HEAD etc are in lower case in requests.py

This commit is contained in:
Bas Stottelaar
2014-05-12 11:02:25 +02:00
parent e108935430
commit 188d907e10

View File

@@ -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