Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Added support to deflate gzip compressed responses #45

Merged
merged 3 commits into from
Dec 5, 2015

Conversation

peet
Copy link
Contributor

@peet peet commented Jul 21, 2015

Rebased @jdmullin's pull #33, resolving conflict in .gitignore

jdmullin added 3 commits July 21, 2015 16:33
Modified AbstractResource.fill to support deflating gzip compressed
content from the server. To request compressed content in the first
place, use restyInstance.withHeader("Accept-Encoding", "gzip")
Just noticed project uses tabs so updated my compression fix.
Added check to exception handler in AbstractResource.fill to handle a
compressed error stream.
@peet
Copy link
Contributor Author

peet commented Jul 21, 2015

should #addStandardHeaders
include

  con.setRequestProperty("Accept-Encoding", "gzip");

?

The test could be flipped to set Accept-Encoding to identity for the non-gzip case.

beders added a commit that referenced this pull request Dec 5, 2015
Added support to deflate gzip compressed responses
@beders beders merged commit 198bd73 into beders:master Dec 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants