if there is no matching vhost return 404 Not Found

This commit is contained in:
Hiltjo Posthuma 2017-07-22 12:30:23 +02:00 committed by Laslo Hunhold
parent c20aa17ae8
commit 4f2cc50416

View file

@ -577,6 +577,9 @@ sendresponse(int fd, struct request *r)
break;
}
}
if (i == LEN(vhost)) {
return sendstatus(fd, S_NOT_FOUND);
}
}
/* normalize target */