3.1 vs 3.2 HTTP server behavior change when Host
header value not allowed
#859
Labels
Milestone
Host
header value not allowed
#859
On 3.1 when an HTTP client's
Host
header is not allowed byhttp_plugin
, an empty 400 response is returned to the client. On 3.2+, the connection is simply closed without any headers sent to the client.This is easy to reproduce by simply
and then
(
http_plugin
listens on 127.0.0.1 by default, and thus will not accept aHost: localhost:8888
header)IMO an error response should be sent (that is, the behavior change in 3.2 is undesirable). I would go further and suggest returning a small body describing the error would be very helpful.
The text was updated successfully, but these errors were encountered: