Hi all,
I am trying to send gziped request to play server.
Everything works great on 2.5, but it's not working anymore since updated to 2.6.
I use jwt token for authentication, which require a header X-Auth-Token.
If app send a regular request(w/o gzip), server can get the following headers.
List(
(Content-Type,none/none),
(Remote-Address,192.168.50.23:64548),
(Raw-Request-URI,/users/abcd),
(Host,192.168.50.47:9000),
(X-Auth-Token, myToken),
(Accept,*/*),
(User-Agent,MyApp/6 CFNetwork/811.5.4 Darwin/16.7.0),
(Accept-Language,zh-tw),
(Accept-Encoding,gzip, deflate),
(Connection,keep-alive),
(Timeout-Access,<function1>))
If app send a gziped request, server get only
List(
(Transfer-Encoding,chunked),
(Content-Type,application/json),
(Content-Encoding,gzip))
which causes authentication fail.
I found that if I change http server back to netty, the issue is gone!
It seems that there's something wrong with akka http server.
Any ideas?
Thank you