[ckan-changes] commit/ckanext-wordpresser: sebbacon: Empty string PATH_INFO broke some versions of paster (and probably isn't valid, anyway)

Bitbucket commits-noreply at bitbucket.org
Wed May 11 16:41:43 UTC 2011


1 new changeset in ckanext-wordpresser:

http://bitbucket.org/okfn/ckanext-wordpresser/changeset/4c5760695cf2/
changeset:   r27:4c5760695cf2
user:        sebbacon
date:        2011-05-11 18:40:39
summary:     Empty string PATH_INFO broke some versions of paster (and probably isn't valid, anyway)
affected #:  1 file (1 byte)

--- a/ckanext/wordpresser/middleware.py	Wed May 04 09:39:35 2011 +0100
+++ b/ckanext/wordpresser/middleware.py	Wed May 11 17:40:39 2011 +0100
@@ -160,7 +160,7 @@
             wp_resp = req.get_response(paste.proxy.Proxy(proxy_url))
             follow = wp_resp.status_int == 301 \
                      and proxy_host in wp_resp.location
-            environ['PATH_INFO'] = ''
+            environ['PATH_INFO'] = '/'
             proxy_url = wp_resp.location
             req = Request(environ)

Repository URL: https://bitbucket.org/okfn/ckanext-wordpresser/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list