From: Lukasz Balcerzak Date: Thu, 27 Jun 2013 11:37:39 +0000 (+0200) Subject: Fixed wrong method call at streaming example X-Git-Tag: 2.0~19^2~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=805abee9b4da8837eab1165eba02b5db889e1fb3;p=services%2Fpython-requests.git Fixed wrong method call at streaming example 405 is returned if POST request is performed to http://httpbin.org/stream/20 --- diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst index 9e0865a..246313f 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():