akka/akka-http

Restrict / review `Transfer-Encoding` header rendering

Open

#3.761 geöffnet am 15. Feb. 2021

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

Repository-Metriken

Stars
 (1.311 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1h 17m) (1 gemergte PR in 30 T)

Beschreibung

Since #3754, we only support Transfer-Encoding: chunked headers and no other ones. The reasoning is that akka-http is implementing the "Transfer" part of HTTP. Leaving parsing or providing custom Transfer-Encoding headers open to the user will lead to confusion and bugs.

We should check that:

  • The Transfer-Encoding model could make sure that the latest entry is always chunked (see RFC), though that would change the error reporting for parsing as now implemented with #3754
  • User-provided Transfer-Encoding headers will always be ignored

Contributor Guide