Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

support gzip response content decode #26

Closed
fengmk2 opened this Issue · 1 comment

1 participant

fengmk2
fengmk2
Owner

If the options.gzip = true, urllib will auto add options.headers["Accept-Encoding"] = 'gzip' and auto ungzip the gzip response content .

User also can disable gzip with options.gzip = false or ignore this argument.

fengmk2 fengmk2 added the feature label
fengmk2 fengmk2 self-assigned this
fengmk2
Owner

Why not make gzip by default? Let it enable to who know/care gzip.

fengmk2 fengmk2 closed this issue from a commit
fengmk2 fengmk2 Support `options.gzip = true` to handle gzip response. fixed #26
* If the options.gzip = true, urllib will auto add
  options.headers["Accept-Encoding"] = 'gzip'
  and auto ungzip the gzip response content.
* User also can disable gzip with options.gzip = false
  or ignore this argument.
5b6fa22
fengmk2 fengmk2 closed this in 5b6fa22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.