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

@GZIP annotation on client proxy doesn't set content-type gzip to the request header

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.1.0.Final, 3.0.20.Final
    • 3.0.19.Final
    • jaxrs
    • None
    • Hide

      git clone git@github.com:kanovotn/Resteasy.git
      git checkout "testsuite/GzipPost"
      cd testsuite
      mvn clean verify -Djboss.home=PATH_TO_EAP -Dtest=GzipTest -fn -Dmaven.test.redirectTestOutputToFile=false -Dversion.resteasy.testsuite=3.0.19.Final-redhat-1

      Show
      git clone git@github.com:kanovotn/Resteasy.git git checkout "testsuite/GzipPost" cd testsuite mvn clean verify -Djboss.home=PATH_TO_EAP -Dtest=GzipTest -fn -Dmaven.test.redirectTestOutputToFile=false -Dversion.resteasy.testsuite=3.0.19.Final-redhat-1

    Description

      I have a client proxy interface which has @GZIP annotation to send a request with gzip compression. See steps to reproduce and this [1] test.

      @Path("/gzippost")
          public interface GzipProxy {
              @Consumes("application/json")
              @POST
              public Response post(@GZIP Pair pair);
          }
      

      Using resteasy client 3.0.19.Final-redhat-1 client, there is no Content-Encoding header in the request.
      Using latest resteasy client from upstream the requests contains header "Content-Encoding: gzip".

      [1] https://github.com/kanovotn/Resteasy/blob/master/testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/core/interceptors/GzipTest.java

      Attachments

        Issue Links

          Activity

            People

              rhn-support-asoldano Alessio Soldano
              rhn-support-iweiss Ingo Weiss
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: