diff options
-rw-r--r-- | server.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -249,7 +249,6 @@ struct location * vhost_fastcgi(struct vhost *v, const char *path) { struct location *loc; - int force_disable = 0; if (v == NULL || path == NULL) return NULL; @@ -260,12 +259,9 @@ vhost_fastcgi(struct vhost *v, const char *path) if (matches(loc->match, path)) return loc; if (loc->nofcgi && matches(loc->match, path)) - force_disable = 1; + return NULL; } - if (force_disable) - return NULL; - loc = TAILQ_FIRST(&v->locations); return loc->fcgi == -1 ? NULL : loc; } |