akka/akka-http
View on GitHubHTTP request parser returns error if Host header has empty field-value
Open
#1,530 opened on Nov 14, 2017
1 - triagedhelp wantedt:coret:server
Description
HTTP/1.1 allows the host header in requests to have an empty field value. However, if Akka HTTP server receives a request with a host header with an empty field value, it behaves as if the request had no host header.
Reproduction steps: Run the sample Akka HTTP server and run curl -H 'Host: ' 'http://localhost:8080/hello'
Expected: The server returns the requested content
Actual: The server returns the error Request is missing required `Host` header