From c92ce31d6042eee7372d38f09042d0667842b83d Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Tue, 17 Jul 2007 04:22:11 +0000 Subject: [PATCH] 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 --- django/core/servers/basehttp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/servers/basehttp.py b/django/core/servers/basehttp.py index 4c656380f2..411068b2f5 100644 --- a/django/core/servers/basehttp.py +++ b/django/core/servers/basehttp.py @@ -376,7 +376,7 @@ class ServerHandler(object): 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)