From: Johnny Lim Date: Thu, 22 Jun 2023 08:44:44 +0000 (+0900) Subject: Fix sample in quickstart.md (#2747) X-Git-Tag: 0.25.0~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e2949c8ea88668f4cc5e509342b57e60fe4d86a;p=thirdparty%2Fhttpx.git Fix sample in quickstart.md (#2747) --- 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) ```