PSGI streaming support. WebGUI is running pretty well

This commit is contained in:
roberto@fiorenzo
2010-11-05 16:02:18 +01:00
parent 187100f2bf
commit bc0eec51b4
6 changed files with 284 additions and 228 deletions
-1
View File
@@ -435,7 +435,6 @@ void uwsgi_uwsgi_config(char *module) {
PyObject *py_opt_dict = PyDict_New();
for(i=0;i<uwsgi.exported_opts_cnt;i++) {
if (PyDict_Contains(py_opt_dict, PyString_FromString(uwsgi.exported_opts[i]->key)) ) {
// if there is already a key, the value must be a list of values
PyObject *py_opt_item = PyDict_GetItemString(py_opt_dict, uwsgi.exported_opts[i]->key);
if (PyList_Check(py_opt_item)) {
PyList_Append(py_opt_item, PyString_FromString( uwsgi.exported_opts[i]->value ));