From 805abee9b4da8837eab1165eba02b5db889e1fb3 Mon Sep 17 00:00:00 2001 From: Lukasz Balcerzak Date: Thu, 27 Jun 2013 13:37:39 +0200 Subject: [PATCH] Fixed wrong method call at streaming example 405 is returned if POST request is performed to http://httpbin.org/stream/20 --- docs/user/advanced.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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():