forked from orbit-oss/flask
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:
parent
ea2a0629c9
commit
c3f651dccb
1 changed files with 0 additions and 2 deletions
|
|
@ -95,8 +95,6 @@ Set yourapplication.fcgi::
|
||||||
from yourapplication import app
|
from yourapplication import app
|
||||||
|
|
||||||
class ScriptNameStripper(object):
|
class ScriptNameStripper(object):
|
||||||
to_strip = '/yourapplication.fcgi'
|
|
||||||
|
|
||||||
def __init__(self, app):
|
def __init__(self, app):
|
||||||
self.app = app
|
self.app = app
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue