nginx/njs-examples

js_body_filter & sendBuffer source change

tzukav opened this issue · 1 comments

Hello, is there any way to use js_body_filter and sendBuffer to remove some chars from the source?
Nginx is waiting for the same content length, if the content length is changed(removed something), the page is keep loading without stopping.
One workaround I got is to replace those characters with a space, to get same content length.
Is there another workaround ? Preferably without js_content.
Thanks.

Hi @tzukav,

You also have to set or drop Content-Length altogether.