From 543790dc8305bdb312a3efea305d8b61dcc9898f Mon Sep 17 00:00:00 2001 From: Unbit Date: Thu, 10 Oct 2013 09:29:28 +0200 Subject: [PATCH] auto-modifier1 only if modifier1 is 0 --- core/uwsgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/uwsgi.c b/core/uwsgi.c index 1417cc8e..607a2417 100644 --- a/core/uwsgi.c +++ b/core/uwsgi.c @@ -1399,7 +1399,7 @@ void what_i_am_doing() { int unconfigured_hook(struct wsgi_request *wsgi_req) { - if (!uwsgi.no_default_app) { + if (wsgi_req->uh->modifier1 == 0 && !uwsgi.no_default_app) { if (uwsgi_apps_cnt > 0 && wsgi_req->app_id > -1 && wsgi_req->app_id < uwsgi.max_apps) { struct uwsgi_app *ua = &uwsgi_apps[wsgi_req->app_id]; if (uwsgi.p[ua->modifier1]->request != unconfigured_hook) {