title: Adding gzip to spring embedded tomcat
body: <p>I'm trying to add gzip compression to my server (reading and writing) I've tried it with (spring boot): </p>
  
  <pre><code>server.tomcat.compression=on
  server.tomcat.compressableMimeTypes=application/json,application/xml,text/html,text/xml,text/plain
  </code></pre>
  
  <p>but when my client sends : </p>
  
  <pre><code>        GZIPOutputStream gzip = new GZIPOutputStream(baos);
          gzip.write(content.getBytes(Charset.forName("UTF8")));
          gzip.close();
  </code></pre>
  
  <p>with headers : </p>
  
  <pre><code>        Accept-Encoding" - "gzip"
          "Content-Encoding" -  "gzip"
  </code></pre>
  
  <p>The data reaches the service still compressed.
  What did I missed? </p>