Update quickstart.rst
authornp-csu <nipan1988@gmail.com>
Sun, 29 Jun 2014 13:05:04 +0000 (21:05 +0800)
committernp-csu <nipan1988@gmail.com>
Sun, 29 Jun 2014 13:05:04 +0000 (21:05 +0800)
line 394: correct an input error.

docs/user/quickstart.rst

index ddf72da81a5f8f95938175ca2646e756f655b360..53ee6f6ed6f53cb01d2bd733bf3e932eb56c3b50 100644 (file)
@@ -391,7 +391,7 @@ redirection handling with the ``allow_redirects`` parameter::
 
 If you're using HEAD, you can enable redirection as well::
 
-    >>> r = requests.post('http://github.com', allow_redirects=True)
+    >>> r = requests.head('http://github.com', allow_redirects=True)
     >>> r.url
     'https://github.com/'
     >>> r.history