From 2e2949c8ea88668f4cc5e509342b57e60fe4d86a Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Thu, 22 Jun 2023 17:44:44 +0900 Subject: [PATCH] Fix sample in quickstart.md (#2747) --- docs/quickstart.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ``` -- 2.47.3