Welcome! Log In Create A New Profile

Advanced

Send headers in output body filter ?

Alfred Sawaya
March 26, 2021 01:06PM
Hello,


I am developping a nginx C module that aims to modify the backend
response (handled by the proxy module) in order to redact specified strings.

I have a working module, but I am stuck on a case where the module modfy
the length of the backend response. As the output header filter is
called before the output body filter, the content-length is already sent
when the module get the backend response and modifies it.

Is there any normal way to workaround this? I would like to avoid
writing a complete upstream handler... I wonder if it is a known use case?


Thanks !

Alfred




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

Send headers in output body filter ?

Alfred Sawaya 57 March 26, 2021 01:06PM

Re: Send headers in output body filter ?

Maxim Dounin 8 March 26, 2021 03:04PM

Re: Send headers in output body filter ?

Alfred Sawaya 8 March 26, 2021 04:06PM

Re: Send headers in output body filter ?

Alfred Sawaya 10 March 26, 2021 07:58PM

Re: Send headers in output body filter ?

Maxim Dounin 15 March 26, 2021 09:50PM

Re: Send headers in output body filter ?

Alfred Sawaya 16 March 26, 2021 10:40PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 61
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready