From e796a57f14f14ddadce7bf766768c2697ea4a1fa Mon Sep 17 00:00:00 2001 From: "roberto@quantal64" Date: Sun, 17 Jun 2012 13:10:34 +0200 Subject: [PATCH] fixed WSGI headers sending in websocket mode --- plugins/python/wsgi_headers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/python/wsgi_headers.c b/plugins/python/wsgi_headers.c index 10cbf3ad..8bc63cac 100644 --- a/plugins/python/wsgi_headers.c +++ b/plugins/python/wsgi_headers.c @@ -253,6 +253,8 @@ PyObject *py_uwsgi_spit(PyObject * self, PyObject * args) { int uwsgi_python_do_send_headers(struct wsgi_request *wsgi_req) { + if (!wsgi_req->headers_hvec) return 0; + #ifdef __sun__ int remains = wsgi_req->headers_hvec + 1; int iov_size;