Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #4898 -- Fixed a precendence problem when constructing HTTP Dat…

…e header.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5721 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c92ce31d6042eee7372d38f09042d0667842b83d 1 parent 62f207c
Malcolm Tredinnick malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/servers/basehttp.py
2  django/core/servers/basehttp.py
View
@@ -376,7 +376,7 @@ def send_preamble(self):
self._write('HTTP/%s %s\r\n' % (self.http_version,self.status))
if 'Date' not in self.headers:
self._write(
- 'Date: %s\r\n' % formatdate()[:26] + "GMT"
+ 'Date: %s\r\n' % (formatdate()[:26] + "GMT")
)
if self.server_software and 'Server' not in self.headers:
self._write('Server: %s\r\n' % self.server_software)
Please sign in to comment.
Something went wrong with that request. Please try again.