Skip to content
Myr

Fixed wrong method call at streaming example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

405 is returned if POST request is performed to http://httpbin.org/stream/20

authored by Lukasz Balcerzak · committed by Lukasz Balcerzak · parent a1bb7fb · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/user/advanced.rst+1 added-1 removed
279 unmodified lines
280281 import json282 import requests283284 r = requests.post('http://httpbin.org/stream/20', stream=True)284 r = requests.get('http://httpbin.org/stream/20', stream=True)285286 for line in r.iter_lines():287288 # filter out keep-alive new lines
306 unmodified lines