Skip to content

Commit 337ba21

Browse files
authored
- Update the message to be consistent with the Django HttpResponseBase class. (#9287)
1 parent 2d8e9ad commit 337ba21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def finalize_response(self, request, response, *args, **kwargs):
421421
"""
422422
# Make the error obvious if a proper response is not returned
423423
assert isinstance(response, HttpResponseBase), (
424-
'Expected a `Response`, `HttpResponse` or `HttpStreamingResponse` '
424+
'Expected a `Response`, `HttpResponse` or `StreamingHttpResponse` '
425425
'to be returned from the view, but received a `%s`'
426426
% type(response)
427427
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy