diennea / carapaceproxy

A Distributed Java Reverse Proxy
Apache License 2.0
24 stars 8 forks source link

NullPointerException when http header host is null #418

Closed hamadodene closed 1 year ago

hamadodene commented 1 year ago

412

As per RFC, if host header is missing or wrong the response must be 400 Bad request. See https://www.rfc-editor.org/rfc/rfc2616#page-38 https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host

the error page can be customized by setting: default.action.badrequest=custom_action

hamadodene commented 1 year ago

@pv3nturi PTAL