MCPcopy Index your code
hub / github.com/pyload/pyload / StripPathMiddleware

Class StripPathMiddleware

module/web/middlewares.py:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 from StringIO import StringIO
10
11class StripPathMiddleware(object):
12 def __init__(self, app):
13 self.app = app
14
15 def __call__(self, e, h):
16 e['PATH_INFO'] = e['PATH_INFO'].rstrip('/')
17 return self.app(e, h)
18
19
20class PrefixMiddleware(object):

Callers 1

webinterface.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected