Traceback (most recent call last):
File "/obj1/wechat/env/local/lib/python2.7/site-packages/flask/app.py", line 1836, in call
return self.wsgi_app(environ, start_response)
File "/obj1/wechat/env/local/lib/python2.7/site-packages/flask/app.py", line 1821, in wsgi_app
return response(environ, start_response)
File "/obj1/wechat/env/local/lib/python2.7/site-packages/werkzeug/wrappers.py", line 1200, in call
app_iter, status, headers = self.get_wsgi_response(environ)
File "/obj1/wechat/env/local/lib/python2.7/site-packages/werkzeug/wrappers.py", line 1188, in get_wsgi_response
headers = self.get_wsgi_headers(environ)
File "/obj1/wechat/env/local/lib/python2.7/site-packages/werkzeug/wrappers.py", line 1110, in get_wsgi_headers
current_url = get_current_url(environ, root_only=True)
File "/obj1/wechat/env/local/lib/python2.7/site-packages/werkzeug/wsgi.py", line 70, in get_current_url
tmp = [environ['wsgi.url_scheme'], '://', get_host(environ, trusted_hosts)]
KeyError: 'wsgi.url_scheme'
请问这是什么问题引起的?
1
qq316107934 2016-03-28 20:01:12 +08:00
response 格式不符合预期吧,解析的时候发现这个 key 不存在。
|