akka/akka-http

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

Open

#1,530 opened on 2017年11月14日

GitHub で見る
 (5 comments) (0 reactions) (0 assignees)Scala (598 forks)batch import
1 - triagedhelp wantedt:coret:server

Repository metrics

Stars
 (1,311 stars)
PR merge metrics
 (平均マージ 1d 10h) (30d で 2 merged PRs)

説明

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

コントリビューターガイド