diff --git a/docs/quickstart.md b/docs/quickstart.md index fc0b0584..07cbfd08 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -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) ```