diff options
author | bbangert <devnull@localhost> | 2006-07-22 20:28:52 +0000 |
---|---|---|
committer | bbangert <devnull@localhost> | 2006-07-22 20:28:52 +0000 |
commit | c8cc7a052e462f5ec2b74ce135794ab854709cb6 (patch) | |
tree | bdb54567f053beab233f30d1256a42102eae0d97 /paste/httpexceptions.py | |
parent | 53b5c47228b0093b337d5aaa3a8aed722687dabe (diff) | |
download | paste-c8cc7a052e462f5ec2b74ce135794ab854709cb6.tar.gz |
Updating HTTPNotModified so it works with ETag. This still needs to be fixed to require either an ETag or a Date header.
Diffstat (limited to 'paste/httpexceptions.py')
-rw-r--r-- | paste/httpexceptions.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py index a4e5074..110df96 100644 --- a/paste/httpexceptions.py +++ b/paste/httpexceptions.py @@ -359,7 +359,8 @@ class HTTPSeeOther(_HTTPMove): class HTTPNotModified(HTTPRedirection): # @@: but not always (HTTP section 14.18.1)...? - required_headers = ('date',) + # @@: Removed 'date' requirement, as its not required for an ETag + # @@: FIXME: This should require either an ETag or a date header code = 304 title = 'Not Modified' message = '' |