SVN: r25777 - trunk/quixote/server

David Binger <dbinger-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Fri, 17 Dec 2004 19:11:15 -0500
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
Author: dbinger
Date: 2004-12-15 12:43:14 -0500 (Wed, 15 Dec 2004)
New Revision: 25777

Modified:
   trunk/quixote/server/simple_server.py
Log:
The simple_server should unquote the path.


Modified: trunk/quixote/server/simple_server.py
===================================================================
--- trunk/quixote/server/simple_server.py	2004-12-15 16:51:03 UTC (rev 25776)
+++ trunk/quixote/server/simple_server.py	2004-12-15 17:43:14 UTC (rev 25777)
@@ -5,6 +5,7 @@
 A simple, single threaded, synchronous HTTP server.
 """
 from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
+import urllib
 import quixote
 from quixote import get_publisher
 from quixote.http_request import HTTPRequest
@@ -25,6 +26,7 @@
             env['PATH_INFO'], env['QUERY_STRING'] = self.path.split('?')
         else:
             env['PATH_INFO'] = self.path
+        env['PATH_INFO'] = urllib.unquote(env['PATH_INFO'])
         if self.headers.typeheader is None:
             env['CONTENT_TYPE'] = self.headers.type
         else: