akka/akka-http

HTTP request parser returns error if Host header has empty field-value

Open

#1.530 geöffnet am 14. Nov. 2017

Auf GitHub ansehen
 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Scala (598 Forks)batch import
1 - triagedhelp wantedt:coret:server

Repository-Metriken

Stars
 (1.311 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 10h) (2 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide