diff options
author | pjenvey <devnull@localhost> | 2006-07-17 19:06:10 +0000 |
---|---|---|
committer | pjenvey <devnull@localhost> | 2006-07-17 19:06:10 +0000 |
commit | 2089aac3fff40df4544df6f78fb02d227b48d8ee (patch) | |
tree | 3f9b5f8e344c757029a8ffc40799c1569ad022da /paste/httpheaders.py | |
parent | 30af1b988a14b2d73354301142274510e86d57d7 (diff) | |
download | paste-2089aac3fff40df4544df6f78fb02d227b48d8ee.tar.gz |
reverting r5459, as the issue has already been fixed
Diffstat (limited to 'paste/httpheaders.py')
-rw-r--r-- | paste/httpheaders.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/paste/httpheaders.py b/paste/httpheaders.py index 2920523..c3a0d61 100644 --- a/paste/httpheaders.py +++ b/paste/httpheaders.py @@ -614,8 +614,6 @@ class _DateHeader(_SingleValueHeader): 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)) @@ -623,8 +621,7 @@ class _DateHeader(_SingleValueHeader): 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 @@ -877,7 +874,7 @@ class _IfModifiedSince(_DateHeader): 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) |