attempt to fix #732

This commit is contained in:
Unbit
2014-10-03 05:24:16 +02:00
parent 73cc2f0a3a
commit 8e3c127e09
4 changed files with 100 additions and 23 deletions
+2
View File
@@ -300,6 +300,8 @@ int uwsgi_python_send_body(struct wsgi_request *, PyObject *);
int uwsgi_request_python_raw(struct wsgi_request *);
void uwsgi_python_set_thread_name(int);
#define py_current_wsgi_req() current_wsgi_req();\
if (!wsgi_req) {\
return PyErr_Format(PyExc_SystemError, "you can call uwsgi api function only from the main callable");\