-
Notifications
You must be signed in to change notification settings - Fork 674
Description
According to both the CGI and WSGI standards (https://www.ietf.org/rfc/rfc3875, https://www.python.org/dev/peps/pep-0333/), SCRIPT_NAME should be the path to "application object" (ie. the script) and PATH_INFO the "remainder of the URL's path". But IIS seems to be passing BOTH with the FULL URL!?
To replicate, set up an application called test within the default website and register the wfastcgi handler for use with it. Go to http://server/test/this and both SERVER_NAME and PATH_INFO will be set to 'test/this' but they should be SERVER_NAME='test/', PATH_INFO='this'.
I don't know enough to call this an IIS bug, but it's certainly a wfastcgi bug as it doesn't conform to the WSGI standard. Is there a way to get IIS to do the right thing without modifying wfastcgi? I can't find it.
Using IIS v8.5.9600.16384 on Windows Server 2012 R2 (6.2 build 9200)