Fix sample in quickstart.md (#2747)

This commit is contained in:
Johnny Lim 2023-06-22 17:44:44 +09:00 committed by GitHub
parent 6d183a87e1
commit 2e2949c8ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
```