Skip to content

Commit

Permalink
Fixed #4898 -- Fixed a precendence problem when constructing HTTP Dat…
Browse files Browse the repository at this point in the history
…e header.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5721 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Jul 17, 2007
1 parent 62f207c commit c92ce31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/core/servers/basehttp.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def send_preamble(self):
self._write('HTTP/%s %s\r\n' % (self.http_version,self.status)) self._write('HTTP/%s %s\r\n' % (self.http_version,self.status))
if 'Date' not in self.headers: if 'Date' not in self.headers:
self._write( 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: if self.server_software and 'Server' not in self.headers:
self._write('Server: %s\r\n' % self.server_software) self._write('Server: %s\r\n' % self.server_software)
Expand Down

0 comments on commit c92ce31

Please sign in to comment.