mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #23977 -- Added setdefault() method to HttpResponse
This commit is contained in:
committed by
Tim Graham
parent
d4e449d730
commit
059c9ab24c
@@ -483,6 +483,10 @@ Requests and Responses
|
||||
like :meth:`~django.http.HttpResponse.getvalue` so that instances can be used
|
||||
as stream objects.
|
||||
|
||||
* The new :meth:`HttpResponse.setdefault()
|
||||
<django.http.HttpResponse.setdefault>` method allows setting a header unless
|
||||
it has already been set.
|
||||
|
||||
Tests
|
||||
^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user