Fixed wrong method call at streaming example

405 is returned if POST request is performed to http://httpbin.org/stream/20
This commit is contained in:
Lukasz Balcerzak
2013-06-27 13:37:39 +02:00
parent a1bb7fb0d2
commit 805abee9b4
+1 -1
View File
@@ -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():