mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #1437 from lukaszb/patch-1
Fixed wrong method call at streaming example
This commit is contained in:
@@ -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():
|
||||
|
||||
|
||||
Reference in New Issue
Block a user