From 73151729c6e580a9d818227142f597eefd5f1beb Mon Sep 17 00:00:00 2001 From: "roberto@oneiric64" Date: Mon, 28 Nov 2011 13:58:15 +0100 Subject: [PATCH] mark route() requests --- logging.c | 2 +- plugins/python/uwsgi_pymodule.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }