pumazi/wsgi_intercept2 — Issue #11: 11 - '+' removed from path 
Author: pumazi
Created: 2011-12-22 19:25:24+00:00
State: open

'+' is removed from the path in make_environ because it uses
urllib.unquote_plus on the path and the query string.

When using zope we need '+' to be able to use namespaces in URL's.

It is not clear why unquote_plus is used here, because every webserver
forwards '+' as is.

The following diff solves the problem :

Index: wsgi_intercept/__init__.py
===================================================================
--- wsgi_intercept/__init__.py (revision 44)
+++ wsgi_intercept/__init__.py (working copy)
@@ -333,10 +333,10 @@
url = url[len(script_name):]

url = url.split('?', 1)
- path_info = urllib.unquote_plus(url[0])
+ path_info = url[0]
query_string = ""
if len(url) == 2:
- query_string = urllib.unquote_plus(url[1])
+ query_string = url[1]

if debuglevel:
print "method: %s; script_name: %s; path_info: %s; query_string:
%s" % (method, script_name, path_info, query_string)

Original link: http://code.google.com/p/wsgi-intercept/issues/detail?id=11