projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f73bda0
)
Missing line was allowing redirects with HEAD
author
Ian Cordasco
<graffatcolmingov@gmail.com>
Wed, 20 Feb 2013 13:57:37 +0000
(08:57 -0500)
committer
Ian Cordasco
<graffatcolmingov@gmail.com>
Wed, 20 Feb 2013 13:57:37 +0000
(08:57 -0500)
Closes #1203
requests/api.py
patch
|
blob
|
history
diff --git
a/requests/api.py
b/requests/api.py
index
4a39211
..
baf43dd
100644
(file)
--- a/
requests/api.py
+++ b/
requests/api.py
@@
-73,6
+73,7
@@
def head(url, **kwargs):
:param \*\*kwargs: Optional arguments that ``request`` takes.
"""
+ kwargs.setdefault('allow_redirects', False)
return request('head', url, **kwargs)