diff options
| author | Lukasz Balcerzak <lukaszbalcerzak@gmail.com> | 2013-06-27 13:37:39 +0200 |
|---|---|---|
| committer | Lukasz Balcerzak <lukaszbalcerzak@gmail.com> | 2013-06-27 13:37:39 +0200 |
| commit | 805abee9b4da8837eab1165eba02b5db889e1fb3 (patch) | |
| tree | 5aa7514371beb6955c3b174f301ca4fddcc0a146 /docs | |
| parent | a1bb7fb0d2939f4811fd470bdba9d98ca35f4de4 (diff) | |
| download | python-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.rst | 2 |
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(): |
