diff --git a/logging.c b/logging.c index 10faa0fe..9a6fec23 100644 --- a/logging.c +++ b/logging.c @@ -64,7 +64,7 @@ void log_request(struct wsgi_request *wsgi_req) { #endif // mark route() requests - if (wsgi_req->status == -1) { + if (wsgi_req->status == -17) { via = msg3; } diff --git a/plugins/python/uwsgi_pymodule.c b/plugins/python/uwsgi_pymodule.c index 457bf2a4..ecc2c05a 100644 --- a/plugins/python/uwsgi_pymodule.c +++ b/plugins/python/uwsgi_pymodule.c @@ -2345,7 +2345,7 @@ PyObject *py_uwsgi_route(PyObject * self, PyObject * args) { ui->func = NULL; // mark a route request - wsgi_req->status = -1; + wsgi_req->status = -17; return (PyObject *) ui; }