if there is no matching vhost return 404 Not Found
This commit is contained in:
parent
c20aa17ae8
commit
4f2cc50416
1 changed files with 3 additions and 0 deletions
3
quark.c
3
quark.c
|
@ -577,6 +577,9 @@ sendresponse(int fd, struct request *r)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (i == LEN(vhost)) {
|
||||||
|
return sendstatus(fd, S_NOT_FOUND);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* normalize target */
|
/* normalize target */
|
||||||
|
|
Loading…
Reference in a new issue