summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLukasz Balcerzak <lukaszbalcerzak@gmail.com>2013-06-27 13:37:39 +0200
committerLukasz Balcerzak <lukaszbalcerzak@gmail.com>2013-06-27 13:37:39 +0200
commit805abee9b4da8837eab1165eba02b5db889e1fb3 (patch)
tree5aa7514371beb6955c3b174f301ca4fddcc0a146 /docs
parenta1bb7fb0d2939f4811fd470bdba9d98ca35f4de4 (diff)
downloadpython-requests-805abee9b4da8837eab1165eba02b5db889e1fb3.tar.gz
Fixed wrong method call at streaming example
405 is returned if POST request is performed to http://httpbin.org/stream/20
Diffstat (limited to 'docs')
-rw-r--r--docs/user/advanced.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst
index 9e0865a9..246313fc 100644
--- a/docs/user/advanced.rst
+++ b/docs/user/advanced.rst
@@ -281,7 +281,7 @@ To use the Twitter Streaming API to track the keyword "requests"::
import json
import requests
- r = requests.post('http://httpbin.org/stream/20', stream=True)
+ r = requests.get('http://httpbin.org/stream/20', stream=True)
for line in r.iter_lines():