1
0
mirror of https://github.com/django/django.git synced 2025-06-06 20:19:13 +00:00

[3.1.x] Fixed #31816 -- Corrected the expected content type in StreamingHttpResponse docs.

Backport of d75436109694c286d9af48ae94ca39759d080214 from master
This commit is contained in:
LincolnPuzey 2020-07-23 19:12:58 +08:00 committed by Mariusz Felisiak
parent 26113b9de1
commit bc75442ebf

View File

@ -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, because it features a slightly different API. However, it is almost identical,
with the following notable differences: 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 * You cannot access its content, except by iterating the response object
itself. This should only occur when the response is returned to the client. itself. This should only occur when the response is returned to the client.