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

Added support to deflate gzip compressed responses#45

Merged
beders merged 3 commits intobeders:masterfrom
peet:gzip
Dec 5, 2015
Merged

Added support to deflate gzip compressed responses#45
beders merged 3 commits intobeders:masterfrom
peet:gzip

Conversation

@peet
Copy link
Copy Markdown
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
Copy Markdown
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