Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/core/servers/basehttp.py
2  django/core/servers/basehttp.py
@@ -376,7 +376,7 @@ def send_preamble(self):
376 376
                 self._write('HTTP/%s %s\r\n' % (self.http_version,self.status))
377 377
                 if 'Date' not in self.headers:
378 378
                     self._write(
379  
-                        'Date: %s\r\n' % formatdate()[:26] + "GMT"
  379
+                        'Date: %s\r\n' % (formatdate()[:26] + "GMT")
380 380
                     )
381 381
                 if self.server_software and 'Server' not in self.headers:
382 382
                     self._write('Server: %s\r\n' % self.server_software)

0 notes on commit c92ce31

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