HTTP POST with gzip headers is ignored

netlify site name: cheerful-taffy-0e7fae
DNS: www.trolleymate.com.au
Accessing From: Android (Flutter)

I have an api endpoint that I have build to accept POST requests with optional gzip header…

            'Content-Encoding': 'gzip',
            'Content-Type': 'application/json',

this works locally but upon deployment to Netlify, the POST requests are ignored and do not respond.

do I need to do something like this?

would a redirect help?

[[redirects]]
  from = "/api/*"
  to = "/.netlify/functions/api/:splat"
  status = 200
  force = true
  headers = {
    "Content-Encoding": "*"
  }

Can you share a minimal reproduction of the issue?

I have subsequently figured out that a gzipped http POST is almost always a bad idea on account of making your webserver easily attackable with a ‘zip bomb’ attack. so I changed my approach to no longer need to do this.