@
zhicheng @
ryd994 最终结果是这样
有自己设置的web.header("Content-Encoding", "gzip")后curl -I输出
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 28 Jan 2015 01:13:13 GMT
Content-Type: application/json
Connection: keep-alive
Content-Encoding: gzip
wget --header="accept-encoidng:gzip"返回文本格式
------------------------------------------------------------------------------------------------------------------------
去掉自己设置的web.header("Content-Encoding", "gzip")后curl -I输出:
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 28 Jan 2015 01:08:13 GMT
Content-Type: application/json
Connection: keep-alive
Vary: Accept-Encoding
wget --header="accept-encoidng:gzip"返回gzip格式