2006-10-31 | paulb | raw files shortlog changelog graph | [project @ 2006-10-31 22:02:44 by paulb] Fixed content_type scope. | |
WebStack/Resources/Static.py (file) |
1.1 --- a/WebStack/Resources/Static.py Fri Jun 09 22:59:38 2006 +0000 1.2 +++ b/WebStack/Resources/Static.py Tue Oct 31 22:02:44 2006 +0000 1.3 @@ -143,7 +143,7 @@ 1.4 self.content_type = content_type 1.5 1.6 def respond(self, trans): 1.7 - trans.set_content_type(content_type) 1.8 + trans.set_content_type(self.content_type) 1.9 f = open(self.filename, "rb") 1.10 trans.get_response_stream().write(f.read()) 1.11 f.close()