Remove the unused ScriptNameStripper.to_strip in the FastCGI doc example.

Alernatively, `environ['SCRIPT_NAME'] = ''` should be replaced with something like:

    if environ['SCRIPT_NAME'].startswith(self.to_strip):
        environ['SCRIPT_NAME'] = environ['SCRIPT_NAME'][len(self.to_strip):]
This commit is contained in:
Simon Sapin 2012-07-12 16:31:53 +03:00
parent ea2a0629c9
commit c3f651dccb

View file

@ -95,8 +95,6 @@ Set yourapplication.fcgi::
from yourapplication import app
class ScriptNameStripper(object):
to_strip = '/yourapplication.fcgi'
def __init__(self, app):
self.app = app