xiangjuntang / onering-desktop

Automatically exported from code.google.com/p/onering-desktop
0 stars 0 forks source link

register_wsgi_app 没有传递必需的 environ 变量给 wsgi 程序 #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
根据 wsgi 协议 http://www.python.org/dev/peps/pep-0333/#environ-variables
SERVER_NAME, SERVER_PORT 是必须且不能为空的
wsgi.version, wsgi.url_scheme, wsgi.errors, wsgi.multithread, 
wsgi.multiprocess, wsgi.run_once 也都必须提供

所以目前实现的 wsgi 协议是不完整的,web.py 
之外的框架可能就会出问题。

比如 Flask 目前就无法使用,调试结果显示 Flask 必须要求 
wsgi.url_scheme,在 environ 中添加  'wsgi.url_scheme': 'http' 
之后工作正常。

Original issue reported on code.google.com by rapt...@gmail.com on 9 Dec 2011 at 9:08

GoogleCodeExporter commented 9 years ago

Original comment by hongqn on 13 Dec 2011 at 2:43

GoogleCodeExporter commented 9 years ago
This issue was closed by revision e19d0e645eba.

Original comment by hongqn on 13 Dec 2011 at 3:05