title: Configure lighttpd to decompress gzip request from the client
body: <p>We've been using gzip to compress HTTP responses from lighttpd server using mod_deflate.  Browser handles HTTP responses itself so the JavaScript client receives decompressed response. It works just fine.</p>
  <p>As we develop network devices, sometimes very low throughput is available, so <strong>we would like to gzip body of larger HTTP requests</strong> to speed it up (e.g. when uploading 10 MB firmware over network with very low upload speed).</p>
  <p>In our JavaScript client, I am compressing body of the HTTP request like this:</p>
  <pre><code>if (apiCall.body) {
        const gZippedBody = pako.gzip(JSON.stringify({ ...apiCall.body }));
        apiCall.headers = {
          ...apiCall.headers,
          'Content-Encoding': 'gzip',
          'Content-Length': gZippedBody.byteLength,
          'Content-Type': 'application/json',
        };
        apiCall.body = gZippedBody;
  }
  </code></pre>
  <p>This part should be correct but I haven't found a way to set lighttpd to decompress those requests, neither in the documentation nor on the Internet. <strong>Does anybody know how to do enable decompression on lighttpd server to be able to accept gzipped request?</strong> Thanks!</p>