Hi Joe,
Try adding:
.header(HttpHeaders.CONTENT_ENCODING, "identity")
Groeten,
Friso
Op zondag 8 mei 2016 03:12:40 UTC+2 schreef Joe Mifsud:
>
> Is it possible to disable gzip encoding on a single request from a
> (Jersey) dropwizard client?
>
> Response response =
> this._baseTarget.path(String.format("resources/%s.json", resourceId))
> .request(MediaType.APPLICATION_JSON_TYPE)
> .put(Entity.entity(body, MediaType.APPLICATION_JSON_TYPE));
>
>
> I'm aware of the jerseyClient / gzipEnabledForRequests flag. I'd like to
> keep this to true and manually turn it off for a few requests. Is this
> possible?
>
> Thanks,
> Joe Mifsud
>
--
You received this message because you are subscribed to the Google Groups
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.