Re: body filter redirect

2021-07-13 Thread Maxim Dounin
Hello! On Mon, Jul 12, 2021 at 12:47:46PM -0700, Dk Jack wrote: > Hi, > In my module, I am trying to take actions based on the content of the body. > To accomplish this, I am capturing the body using body file as shown in the > example below: > >

[njs] Added fs flags missed in 5c6aa60224cb (0.1.15).

2021-07-13 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/537f897451ef branches: changeset: 1676:537f897451ef user: hyeonisism date: Tue Jul 13 10:23:23 2021 +0900 description: Added fs flags missed in 5c6aa60224cb (0.1.15). This closes #405 issue on Github. diffstat: src/njs_fs.c | 2 ++ 1 files

[njs] Added support for ArrayBuffer in njs_vm_value_to_bytes().

2021-07-13 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/e37a80fac86f branches: changeset: 1677:e37a80fac86f user: Dmitry Volyntsev date: Tue Jul 13 15:22:24 2021 + description: Added support for ArrayBuffer in njs_vm_value_to_bytes(). diffstat: src/njs_vm.c | 22 +- 1

Re: Fwd: Proposal: Add .mjs file extension to known to be JS

2021-07-13 Thread Maxim Dounin
Hello! On Mon, Jul 12, 2021 at 09:24:49AM -0500, Bradley Farias wrote: > See Add .mjs file extension to known JS mime types by bmeck · Pull Request > #71 · nginx/nginx (github.com) and > the related Use .mjs for modules more consistently by mathiasbynens

Re: Fwd: Proposal: Add .mjs file extension to known to be JS

2021-07-13 Thread Bradley Farias
The proposal instructions on the nginx website state that it is for bug fixes and so it seems that would be the wrong place to put a proposal. I can do so and cross reference. To be clear; whatwg is using it in their specifications without any Node usage implied; if files are produced with that

Re: Fwd: Proposal: Add .mjs file extension to known to be JS

2021-07-13 Thread Maxim Dounin
Hello! On Tue, Jul 13, 2021 at 12:48:51PM -0500, Bradley Farias wrote: > The proposal instructions on the nginx website state that it is for > bug fixes and so it seems that would be the wrong place to put a proposal. > I can do so and cross reference. Thanks for the ticket. > To be clear;

Re: body filter redirect

2021-07-13 Thread Dk Jack
Hello Maxim, Thanks for responding. Can I get some clarification on what you mean by the statement below: "More flexibility can be achieved by reading the request body earlier - for example, you can do this from your own module, or with embedded scripting such as perl or njs." Are you suggesting