From e2dcdba5a75f6624ea18e7c626c295d81f2f713e Mon Sep 17 00:00:00 2001 From: "roberto@precise64" Date: Wed, 2 May 2012 11:34:10 +0200 Subject: [PATCH] fixed headers sent --- plugins/python/wsgi_subhandler.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/python/wsgi_subhandler.c b/plugins/python/wsgi_subhandler.c index 0fb0e782..eb2ee8ab 100644 --- a/plugins/python/wsgi_subhandler.c +++ b/plugins/python/wsgi_subhandler.c @@ -291,6 +291,11 @@ clear: } Py_XDECREF((PyObject *)wsgi_req->async_placeholder); clear2: + + if (!wsgi_req->headers_sent && wsgi_req->headers_hvec > 0) { + uwsgi_python_do_send_headers(wsgi_req); + } + Py_DECREF((PyObject *)wsgi_req->async_result); PyErr_Clear();