From 5f74e6d964f40e8e4088cdcbba3014691067290d Mon Sep 17 00:00:00 2001 From: Roberto De Ioris Date: Sat, 15 Mar 2014 12:51:15 +0100 Subject: [PATCH] fixed stupid bug with python add_var --- plugins/python/uwsgi_pymodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python/uwsgi_pymodule.c b/plugins/python/uwsgi_pymodule.c index 0da9b28f..7d68fc1e 100644 --- a/plugins/python/uwsgi_pymodule.c +++ b/plugins/python/uwsgi_pymodule.c @@ -11,7 +11,7 @@ static PyObject *py_uwsgi_add_var(PyObject * self, PyObject * args) { Py_ssize_t vallen = 0; struct wsgi_request *wsgi_req = py_current_wsgi_req(); - if (!PyArg_ParseTuple(args, "#s#s", &key, &keylen, &val, &vallen)) { + if (!PyArg_ParseTuple(args, "s#s#", &key, &keylen, &val, &vallen)) { return NULL; }