diff options
author | Unbit <info@unbit.it> | 2013-10-10 09:29:28 +0200 |
---|---|---|
committer | Unbit <info@unbit.it> | 2013-10-10 09:29:28 +0200 |
commit | 543790dc8305bdb312a3efea305d8b61dcc9898f (patch) | |
tree | 2eaf7b1c10a26f119e958cda8561afdd5ea5c2b2 | |
parent | be24060578c6402cd090e7b056456ba74a3c7442 (diff) | |
download | uwsgi-543790dc8305bdb312a3efea305d8b61dcc9898f.tar.gz |
auto-modifier1 only if modifier1 is 0
-rw-r--r-- | core/uwsgi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |