auto-modifier1 only if modifier1 is 0

This commit is contained in:
Unbit
2013-10-10 09:29:28 +02:00
parent be24060578
commit 543790dc83
+1 -1
View File
@@ -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) {