We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a6e16be + 65a439e commit 9167755Copy full SHA for 9167755
1 file changed
leancloud/engine/https_redirect_middleware.py
@@ -22,7 +22,8 @@ def __init__(self, wsgi_app):
22
23
def __call__(self, environ, start_response):
24
request = Request(environ)
25
- if is_prod and request.headers.get('X-Forwarded-Proto') != 'https':
+ engine_health = '/1.1/functions/_ops/metadatas'
26
+ if is_prod and request.path != engine_health and request.headers.get('X-Forwarded-Proto') != 'https':
27
url = 'https://{0}{1}'.format(request.host, request.full_path)
28
return redirect(url)(environ, start_response)
29
0 commit comments