1.1 --- a/WebStack/Webware.py Thu Jan 29 23:42:47 2004 +0000
1.2 +++ b/WebStack/Webware.py Sun Feb 01 15:28:08 2004 +0000
1.3 @@ -80,6 +80,14 @@
1.4
1.5 return self.trans.request().contentLanguages()
1.6
1.7 + def get_path(self):
1.8 +
1.9 + """
1.10 + A framework-specific method which gets the entire path from the request.
1.11 + """
1.12 +
1.13 + raise NotImplementedError, "get_path"
1.14 +
1.15 def get_path_info(self):
1.16
1.17 """
1.18 @@ -128,8 +136,6 @@
1.19 response.
1.20 """
1.21
1.22 - # Make sure that only ASCII is used in the header.
1.23 -
1.24 - return self.trans.response().setHeader("Content-Type", content_type.encode("US-ASCII"))
1.25 + return self.trans.response().setHeader("Content-Type", self.format_content_type(content_type))
1.26
1.27 # vim: tabstop=4 expandtab shiftwidth=4