Ticket #4898: django-fix-date.patch

File django-fix-date.patch, 703 bytes (added by anonymous, 17 years ago)
  • django/core/servers/basehttp.py

     
    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)
Back to Top