Skip to content

Instantly share code, notes, and snippets.

@Alien2150
Created September 12, 2016 10:01
Show Gist options
  • Save Alien2150/943ae0d5af4463be42948fcb8a7c325d to your computer and use it in GitHub Desktop.
Save Alien2150/943ae0d5af4463be42948fcb8a7c325d to your computer and use it in GitHub Desktop.
private static class RemoveAcceptEncodingFilter implements ClientRequestFilter {
RemoveAcceptEncodingFilter() {}
@Override
public void filter(ClientRequestContext clientRequestContext) throws IOException {
clientRequestContext.getHeaders().remove("Accept-Encoding");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment