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 63632004-10-06 0.7.11
6464Fixed:
6565- index args URL generation broken in .10 (sf bug 1096027)
66+ - handle NotModified for non-static files (sf patch 1095790)
6667
6768
68692004-10-04 0.7.10
Original file line number Diff line number Diff line change 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 ))
You can’t perform that action at this time.
0 commit comments