SVN: r25258 - in trunk/quixote: . server

Neil Schemenauer <nascheme-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Tue, 5 Oct 2004 12:41:23 -0400
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
Author: nascheme
Date: 2004-10-05 12:40:54 -0400 (Tue, 05 Oct 2004)
New Revision: 25258

Modified:
   trunk/quixote/CHANGES
   trunk/quixote/server/medusa_http.py
Log:
Unquote the PATH_INFO environment variable.


Modified: trunk/quixote/CHANGES
===================================================================
--- trunk/quixote/CHANGES	2004-10-05 16:28:23 UTC (rev 25257)
+++ trunk/quixote/CHANGES	2004-10-05 16:40:54 UTC (rev 25258)
@@ -15,10 +15,14 @@
 
   * Convert tests to Sancho's utest framework.
 
-  * Simplify propagation of HTTP headers for Medusa server.
+  * Add 'index_filenames' keyword option to StaticDirectory.
 
-  * add 'index_filenames' keyword option to StaticDirectory.
+  Medusa server:
 
+    * Unquote the PATH_INFO environment variable.
+
+    * Simplify propagation of HTTP headers.
+
   Form2 library:
 
     * Don't parse empty POSTs.

Modified: trunk/quixote/server/medusa_http.py
===================================================================
--- trunk/quixote/server/medusa_http.py	2004-10-05 16:28:23 UTC (rev 25257)
+++ trunk/quixote/server/medusa_http.py	2004-10-05 16:40:54 UTC (rev 25258)
@@ -10,7 +10,7 @@
 # A simple HTTP server, using Medusa, that publishes a Quixote application.
 
 import sys
-import asyncore, rfc822, socket
+import asyncore, rfc822, socket, urllib
 from StringIO import StringIO
 from medusa import http_server, xmlrpc_handler
 from quixote.http_response import Stream
@@ -64,6 +64,7 @@
             path = request.uri
             query_string = ''
 
+        path = urllib.unquote(path)
         server_port = str(self.server.port)
         http_host = msg.get("Host")
         if http_host: