akka/akka-http
Vedi su GitHubHTTP request parser returns error if Host header has empty field-value
Open
#1530 aperta il 14 nov 2017
1 - triagedhelp wantedt:coret:server
Metriche repository
- Star
- (1311 star)
- Metriche merge PR
- (Merge medio 1g 10h) (2 PR mergiate in 30 g)
Descrizione
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