Handling gzipped requests

47 views
Skip to first unread message

Samarjit Uppal

unread,
Jun 17, 2015, 2:17:39 AM6/17/15
to openre...@googlegroups.com

Hi,

Can openresty handle gzipped http requests? I can't seem to find a library equivalent to mod_deflate like apache has which decompresses gzipped content.

Thanks,
Samar

Yichun Zhang (agentzh)

unread,
Jun 17, 2015, 2:24:06 AM6/17/15
to openresty-en
Hello!
See http://nginx.org/en/docs/http/ngx_http_gunzip_module.html

There're also some 3rd-party zlib Lua binding libraries you may find
useful in certain contexts.

Regards,
-agentzh

Jim Robinson

unread,
Jun 24, 2015, 7:48:37 PM6/24/15
to openre...@googlegroups.com
If you're talking about passing back a response you pulled from a backend, just add the module agentzh pointed out and stick

gunzip on;

into your configuration file.
Reply all
Reply to author
Forward
0 new messages