Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1735

RESTEasy returns wrong Content-Encoding data if client request gzip

    XMLWordPrintable

    Details

      Description

      By default, RESTEasy returns wrong Content-Encoding data if client request gzip data and if RESTEasy end-point contains @GZiP annotation

      1. Server contains end-point with @GZIP annotation, for example this:

            @GET
            @Path("/echo")
            @GZIP
            String echo(@QueryParam("name") String message);

      2. RESTEasy client send request with "Accept-Encoding: gzip, deflate"
      3. By default, server doesn't use GZIPDecodingInterceptor, GZIPEncodingInterceptor and AcceptEncodingGZIPFilter. So server doesn't compress data
      4. server sends "Content-Encoding: gzip" in header of response, although data is not compressed

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  asoldano Alessio Soldano
                  Reporter:
                  pjurak Petr Jurak
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: