Issue 47 in onering-desktop: register_wsgi_app 没有传递必需的 environ 变量给 wsgi 程序

1 view
Skip to first unread message

onering...@googlecode.com

unread,
Dec 9, 2011, 4:09:09 AM12/9/11
to oneri...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 47 by rapt...@gmail.com: register_wsgi_app 没有传递必需的 environ
变量给 wsgi 程序
http://code.google.com/p/onering-desktop/issues/detail?id=47

根据 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' 之后工作正常。

onering...@googlecode.com

unread,
Dec 12, 2011, 9:44:47 PM12/12/11
to oneri...@googlegroups.com
Updates:
Status: Started

Comment #1 on issue 47 by hongqn: register_wsgi_app 没有传递必需的 environ
(No comment was entered for this change.)

onering...@googlecode.com

unread,
Dec 12, 2011, 10:06:04 PM12/12/11
to oneri...@googlegroups.com
Updates:
Status: Fixed

Comment #2 on issue 47 by hongqn: register_wsgi_app 没有传递必需的 environ
This issue was closed by revision e19d0e645eba.

Reply all
Reply to author
Forward
0 new messages