Skip to content
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...
1 parent 62f207c commit c92ce31d6042eee7372d38f09042d0667842b83d @malcolmt malcolmt committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/servers/basehttp.py
View
2 django/core/servers/basehttp.py
@@ -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)

0 comments on commit c92ce31

Please sign in to comment.
Something went wrong with that request. Please try again.