cannot handle gziped requests on play 2.6

31 views
Skip to first unread message

Elvis Lee

unread,
Oct 18, 2017, 12:16:40 AM10/18/17
to Play Framework
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



R.M.

unread,
Oct 18, 2017, 2:56:13 AM10/18/17
to Play Framework
If I'm not mistaken that is this issue:  https://github.com/playframework/playframework/issues/7911
Reply all
Reply to author
Forward
0 new messages