From bc75442ebfe2102fcc52c755cb40ba8051f0e383 Mon Sep 17 00:00:00 2001 From: LincolnPuzey Date: Thu, 23 Jul 2020 19:12:58 +0800 Subject: [PATCH] [3.1.x] Fixed #31816 -- Corrected the expected content type in StreamingHttpResponse docs. Backport of d75436109694c286d9af48ae94ca39759d080214 from master --- docs/ref/request-response.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 86a55bc45d6..fa5d6fc2592 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -1128,7 +1128,7 @@ The :class:`StreamingHttpResponse` is not a subclass of :class:`HttpResponse`, because it features a slightly different API. However, it is almost identical, with the following notable differences: -* It should be given an iterator that yields strings as content. +* It should be given an iterator that yields bytestrings as content. * You cannot access its content, except by iterating the response object itself. This should only occur when the response is returned to the client.