Permalink
Browse files

fix in web.modified

  • Loading branch information...
1 parent 35f9691 commit 4f32f8bdcdfad11f29d1d2652a20a9f4106862e1 @aaronsw aaronsw committed with anandology Dec 11, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 web/http.py
View
@@ -73,8 +73,8 @@ def modified(date=None, etag=None):
validate = True
if validate: web.ctx.status = '304 Not Modified'
- lastmodified(date)
- web.header('ETag', '"' + etag + '"')
+ if date: lastmodified(date)
+ if etag: web.header('ETag', '"' + etag + '"')
return not validate
def write(cgi_response):

0 comments on commit 4f32f8b

Please sign in to comment.