Skip to content

Commit e5b3f23

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 2d430ec commit e5b3f23

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Fixed:
6363
2004-10-06 0.7.11
6464
Fixed:
6565
- index args URL generation broken in .10 (sf bug 1096027)
66+
- handle NotModified for non-static files (sf patch 1095790)
6667

6768

6869
2004-10-04 0.7.10

roundup/cgi/client.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.211 2004-12-03 22:19:41 richard Exp $
1+
# $Id: client.py,v 1.211.2.1 2005-01-05 22:02:05 richard Exp $
22

33
"""WWW request handler (also used in the stand-alone server).
44
"""
@@ -270,7 +270,12 @@ def inner_main(self):
270270
self.response_code = 302
271271
self.write_html('Redirecting to <a href="%s">%s</a>'%(url, url))
272272
except SendFile, designator:
273-
self.serve_file(designator)
273+
try:
274+
self.serve_file(designator)
275+
except NotModified:
276+
# send the 304 response
277+
self.request.send_response(304)
278+
self.request.end_headers()
274279
except SendStaticFile, file:
275280
try:
276281
self.serve_static_file(str(file))

0 commit comments

Comments
 (0)