Hi all,

I've figured it out myself. For anybody encountering this, the solution is 
to add a header in the response of the method that you don't want gzipped. 
I did it like this: 
        return Response.ok()
                .header(HttpHeaders.CONTENT_ENCODING, "identity")
                .entity(eventOutput)
                .build();

Groeten,

Friso

Op donderdag 21 april 2016 15:41:21 UTC+2 schreef [email protected]:
>
> Hi all,
>
> Is there a way to override the client header for gzip* for specific 
> resources*? I.e.: in general I want things to be zipped, but when sending 
> a chunked output or server sent events I do not want Dropwizard to wait for 
> the response to be complete before sending the response. So I want to be 
> able do disable the zipping specifically.
>
> Anybody got a clue how to achieve this?
>
> Groeten,
>
> Friso
>

-- 
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.

Reply via email to