parent
6fe8d79306
commit
7055fb9a42
1 changed files with 3 additions and 1 deletions
|
|
@ -97,12 +97,14 @@ async def prepare_request(request: Request):
|
|||
# add / to /acs
|
||||
if not path.endswith("/"):
|
||||
path = path + '/'
|
||||
if not path.startswith("/api"):
|
||||
path = "/api" + path
|
||||
|
||||
return {
|
||||
'https': 'on' if proto == 'https' else 'off',
|
||||
'http_host': request.headers['host'],
|
||||
'server_port': url_data.port,
|
||||
'script_name': "/api" + path,
|
||||
'script_name': path,
|
||||
'get_data': request.args.copy(),
|
||||
# Uncomment if using ADFS as IdP, https://github.com/onelogin/python-saml/pull/144
|
||||
# 'lowercase_urlencoding': True,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue