Welcome! Log In Create A New Profile

Advanced

Set 'Content-Length' Header Field in Body Handler

Christos Kontas
February 09, 2016 08:38AM
Hello!

I am currently working on a filter module, in which I would like to rewrite the content
received from an upstream. Similar to `gzip` module, I don't know the exact value to
set to the 'Content-Length' header field during filtering the headers of the request,
not only before processing part of the request's body.

Is there any way I can postpone the transmission of the response headers until
the time this value can be calculated during the filtering of the request body?

Thank you in advance!
Christos Kontas, kontas@ceid.upatras.gr

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Set 'Content-Length' Header Field in Body Handler

Christos Kontas February 09, 2016 08:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 186
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready