1.1 --- a/WebStack/BaseHTTPRequestHandler.py Sun May 30 20:02:49 2004 +0000
1.2 +++ b/WebStack/BaseHTTPRequestHandler.py Sun May 30 20:32:17 2004 +0000
1.3 @@ -140,6 +140,17 @@
1.4
1.5 return self.trans.path
1.6
1.7 + def get_path_without_query(self):
1.8 +
1.9 + """
1.10 + A framework-specific method which gets the entire path from the request
1.11 + minus the query string.
1.12 + """
1.13 +
1.14 + # Remove the query string from the end of the path.
1.15 +
1.16 + return self.trans.path.split("?")[0]
1.17 +
1.18 def get_path_info(self):
1.19
1.20 """
1.21 @@ -148,9 +159,7 @@
1.22 request.
1.23 """
1.24
1.25 - # Remove the query string from the end of the path.
1.26 -
1.27 - return self.trans.path.split("?")[0]
1.28 + return self.get_path_without_query()
1.29
1.30 def get_query_string(self):
1.31