Skip to content

Commit 79a98e1

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 88cb0b1 commit 79a98e1

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
@@ -5,6 +5,7 @@ are given with the most recent entry first.
55
2004-10-06 0.7.11
66
Fixed:
77
- index args URL generation broken in .10 (sf bug 1096027)
8+
- handle NotModified for non-static files (sf patch 1095790)
89

910

1011
2005-01-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.176.2.9 2004-12-03 22:21:31 richard Exp $
1+
# $Id: client.py,v 1.176.2.10 2005-01-05 22:02:57 richard Exp $
22

33
"""WWW request handler (also used in the stand-alone server).
44
"""
@@ -227,7 +227,12 @@ def inner_main(self):
227227
self.response_code = 302
228228
self.write('Redirecting to <a href="%s">%s</a>'%(url, url))
229229
except SendFile, designator:
230-
self.serve_file(designator)
230+
try:
231+
self.serve_file(designator)
232+
except NotModified:
233+
# send the 304 response
234+
self.request.send_response(304)
235+
self.request.end_headers()
231236
except SendStaticFile, file:
232237
try:
233238
self.serve_static_file(str(file))

0 commit comments

Comments
 (0)