0

I am trying to "force" app engine to serve Content-Length instead of Transfer-Encoding but I can't figure it out.

I have a Node Express app running on flex engine.

Andrej
  • 23
  • 3
  • I don't think that you will be able to force the headers as these headers are managed by App Engine (even if you modify them, at the end, app engine will select the correct values). Here I believe the option will be to do as mentioned at this [link](https://cloud.google.com/appengine/docs/standard/go/reference/request-response-headers?hl=fr#headers_added) and try to Compress the content as it is mentioned that app engine will use the header after compression, if compression is applied. – Luis Manuel Oct 26 '20 at 21:45
  • Thanks for response, I have added a compression to my responses (that added a `Content-Encoding: gzip` to header) but nothing seems to have changed :| – Andrej Oct 27 '20 at 09:32

1 Answers1

0

It seems that setting Content-Type as text/json has "fixed" the problem - App engine sets the Content-Length header property.

Andrej
  • 23
  • 3