Browse files

Remove the unused `ScriptNameStripper.to_strip` in the FastCGI doc ex…

…ample.


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):]
  • Loading branch information...
1 parent ea2a062 commit c3f651dccbba801fa07426cef1e6604b579b8fe7 @SimonSapin SimonSapin committed Jul 12, 2012
Showing with 0 additions and 2 deletions.
  1. +0 −2 docs/deploying/fastcgi.rst
View
2 docs/deploying/fastcgi.rst
@@ -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

0 comments on commit c3f651d

Please sign in to comment.