Commits

Anonymous committed ce0f4d2

reverting r5459, as the issue has already been fixed

  • Participants
  • Parent commits c9b636c

Comments (0)

Files changed (1)

File paste/httpheaders.py

     def parse(self, *args, **kwargs):
         """ return the time value (in seconds since 1970) """
         value = self.__call__(*args, **kwargs)
-        if ';' in value:
-            value = value.split(';', 1)[0]
         if value:
             try:
                 return mktime_tz(parsedate_tz(value))
                 raise HTTPBadRequest((
                     "Received an ill-formed timestamp for %s: %s\r\n") %
                     (self.name, value))
-        else:
-            return None
+
 #
 # Following are specific HTTP headers. Since these classes are mostly
 # singletons, there is no point in keeping the class around once it has
         IE 6 is known to send:
         If-Modified-Since: Sun, 25 Jun 2006 20:36:35 GMT; length=1506
         """
-        return _DateHeader.__call__(self, *args, **kwargs).split(';')[0]
+        return _DateHeader.__call__(self, *args, **kwargs).split(';', 1)[0]
 
     def parse(self, *args, **kwargs):
         value = _DateHeader.parse(self, *args, **kwargs)