Skip to content

Commit

Permalink
Always parse Content-Encoding and WebSocket headers (#1937) (#1941)
Browse files Browse the repository at this point in the history
These headers are needed by Akka HTTP in order
to populate Request objects and to support
WebSockets.
  • Loading branch information
ktoso authored and johanandren committed Mar 16, 2018
1 parent be2b92f commit 6bab89f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,16 @@ private[http] object HttpHeaderParser {

private val alwaysParsedHeaders = Set[String](
"connection",
"content-encoding",
"content-length",
"content-type",
"expect",
"host",
"transfer-encoding"
"sec-websocket-key",
"sec-websocket-protocol",
"sec-websocket-version",
"transfer-encoding",
"upgrade"
)

def apply(settings: HttpHeaderParser.Settings, log: LoggingAdapter) =
Expand Down

0 comments on commit 6bab89f

Please sign in to comment.