Fix sample in quickstart.md (#2747)
This commit is contained in:
parent
6d183a87e1
commit
2e2949c8ea
@ -367,7 +367,7 @@ If you're using streaming responses in any of these ways then the `response.cont
|
||||
|
||||
```pycon
|
||||
>>> with httpx.stream("GET", "https://www.example.com") as r:
|
||||
... if r.headers['Content-Length'] < TOO_LONG:
|
||||
... if int(r.headers['Content-Length']) < TOO_LONG:
|
||||
... r.read()
|
||||
... print(r.text)
|
||||
```
|
||||
|
||||
Loading…
Reference in New Issue
Block a user