Skip to content

Commit

Permalink
make sure reverseproxy example joins paths properly
Browse files Browse the repository at this point in the history
  • Loading branch information
dtkav committed Jan 13, 2019
1 parent 56ad477 commit 720ed84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/openapi3/reverseproxy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, app, script_name=None, scheme=None, server=None):
def __call__(self, environ, start_response):
script_name = environ.get('HTTP_X_FORWARDED_PATH', '') or self.script_name
if script_name:
environ['SCRIPT_NAME'] = script_name
environ['SCRIPT_NAME'] = "/" + script_name.lstrip("/")
path_info = environ['PATH_INFO']
if path_info.startswith(script_name):
environ['PATH_INFO_OLD'] = path_info
Expand Down

0 comments on commit 720ed84

Please sign in to comment.