At 03:36 PM 12/19/2006 -0800, Jason Kirtland wrote:
>To my reading, PEP 333 implies that a server should plop the
>Request-URI into PATH_INFO, and it should store it there
>unmolested.

That's only the case if the address of the application is the root of the 
server, and then only if the request URI is a path, rather than an absolute 
URI.

Note that a CGI-to-WSGI or FastCGI-to-WSGI gateway (or a piece of routing 
middleware) will have a SCRIPT_NAME that designates the location of the 
target application.  Your reading, in other words, is overly narrow, as it 
applies only to origin servers where the WSGI application represents the 
server's root URI, and thus have an empty SCRIPT_NAME.

_______________________________________________
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Reply via email to