Break if missing host header
This commit is contained in:
@@ -300,6 +300,11 @@ private:
|
||||
req->bf.add(h->key);
|
||||
}
|
||||
|
||||
/* Break if no host header */
|
||||
if (!req->getHeader("host").length()) {
|
||||
return {0, FULLPTR};
|
||||
}
|
||||
|
||||
/* RFC 9112 6.3
|
||||
* If a message is received with both a Transfer-Encoding and a Content-Length header field,
|
||||
* the Transfer-Encoding overrides the Content-Length. Such a message might indicate an attempt
|
||||
|
||||
Reference in New Issue
Block a user