mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +00:00
Removed default empty content argument from HttpResponse calls.
This commit is contained in:
parent
959d0c078a
commit
c492fdfd24
9 changed files with 15 additions and 15 deletions
|
@ -118,7 +118,7 @@ And the view::
|
|||
|
||||
def head(self, *args, **kwargs):
|
||||
last_book = self.get_queryset().latest('publication_date')
|
||||
response = HttpResponse('')
|
||||
response = HttpResponse()
|
||||
# RFC 1123 date format
|
||||
response['Last-Modified'] = last_book.publication_date.strftime('%a, %d %b %Y %H:%M:%S GMT')
|
||||
return response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue