mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Removed default empty content argument from HttpResponse calls.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user