From c8cc7a052e462f5ec2b74ce135794ab854709cb6 Mon Sep 17 00:00:00 2001 From: bbangert Date: Sat, 22 Jul 2006 20:28:52 +0000 Subject: Updating HTTPNotModified so it works with ETag. This still needs to be fixed to require either an ETag or a Date header. --- paste/httpexceptions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'paste/httpexceptions.py') 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 = '' -- cgit v1.2.1