我有安装了zlib的ruby-1.9.3-p327。localhost:80是nginx简单测试页面。require"net/http"=>trueNet::HTTP::HAVE_ZLIB=>trueres=Net::HTTP.start("localhost","80")do|http|req=Net::HTTP::Get.new"/"req["accept-encoding"]="gzip"http.requestreqend=>#res.get_fields"content-encoding"=>["gzip"]res.body=>"\x1F\x8B\b\x00\x00\x00\