File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ are given with the most recent entry first.
552004-10-06 0.7.11
66Fixed:
77- index args URL generation broken in .10 (sf bug 1096027)
8+ - handle NotModified for non-static files (sf patch 1095790)
89
910
10112005-01-04 0.7.10
Original file line number Diff line number Diff line change 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 ))
You can’t perform that action at this time.
0 commit comments