Skip to content

Commit c92ce31

Browse files
committed
Fixed #4898 -- Fixed a precendence problem when constructing HTTP Date header.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5721 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent 62f207c commit c92ce31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django/core/servers/basehttp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def send_preamble(self):
376376
self._write('HTTP/%s %s\r\n' % (self.http_version,self.status))
377377
if 'Date' not in self.headers:
378378
self._write(
379-
'Date: %s\r\n' % formatdate()[:26] + "GMT"
379+
'Date: %s\r\n' % (formatdate()[:26] + "GMT")
380380
)
381381
if self.server_software and 'Server' not in self.headers:
382382
self._write('Server: %s\r\n' % self.server_software)

0 commit comments

Comments
 (0)