1.1 --- a/WebStack/Resources/ResourceMap.py Thu Aug 25 13:44:38 2005 +0000
1.2 +++ b/WebStack/Resources/ResourceMap.py Thu Aug 25 16:35:23 2005 +0000
1.3 @@ -150,7 +150,7 @@
1.4 trans.set_response_code(404)
1.5 trans.set_content_type(WebStack.Generic.ContentType("text/plain"))
1.6 out = trans.get_response_stream()
1.7 - out.write("Resource '%s' not found." % trans.get_path_info())
1.8 + out.write("Resource '%s' not found." % trans.get_path_info(self.urlencoding))
1.9
1.10 def send_redirect(self, trans):
1.11
1.12 @@ -159,12 +159,13 @@
1.13 end of the request path.
1.14 """
1.15
1.16 + path_without_query = trans.get_path_without_query(self.urlencoding)
1.17 query_string = trans.get_query_string()
1.18 if query_string:
1.19 query_string = "?" + query_string
1.20
1.21 trans.set_response_code(302)
1.22 - trans.set_header_value("Location", trans.get_path_without_query() + "/" + query_string)
1.23 + trans.set_header_value("Location", trans.encode_path(path_without_query, self.urlencoding) + "/" + query_string)
1.24 raise WebStack.Generic.EndOfResponse
1.25
1.26 # vim: tabstop=4 expandtab shiftwidth=4