Re: processing a request without body

2024-01-12 Thread Muhammad Nuzaihan
Hi Maxim, I've verified that even with "curl -X POST http://localhost/proxy/profile/alice/comment; works. as below debug logs. 2024/01/13 15:19:44 [debug] 2452969#0: *20 rewrite phase: 0 2024/01/13 15:19:44 [debug] 2452969#0: *20 test location: "/" 2024/01/13 15:19:44 [debug] 2452969#0: *20 test

Re: processing a request without body

2024-01-12 Thread Muhammad Nuzaihan
Hi Maxim, (added some info about URL) I did enable debug logs before i posted the question. With json payload, my code is executed right after doing malloc and "http request body content length filter". Without a json payload, it doesn't execute my request validation.That's why i thought it

Re: processing a request without body

2024-01-12 Thread Muhammad Nuzaihan
Hi Maxim, I did enable debug logs before i posted the question. With json payload, my code is executed right after doing malloc and "http request body content length filter". Without a json payload, it doesn't execute my request validation.That's why i thought it might be due to content length

Re: [PATCH] fastcgi_params: added REMOTE_HOST parameter

2024-01-12 Thread Maxim Dounin
Hello! On Fri, Jan 12, 2024 at 11:03:45PM +, Jakub Zelenka wrote: > On Fri, Jan 12, 2024 at 10:20 PM Maxim Dounin wrote: > > > > # HG changeset patch > > > # User Jakub Zelenka > > > # Date 1705078404 0 > > > # Fri Jan 12 16:53:24 2024 + > > > # Node ID

Re: [PATCH] fastcgi_params: added REMOTE_HOST parameter

2024-01-12 Thread Jakub Zelenka
Hi, On Fri, Jan 12, 2024 at 10:20 PM Maxim Dounin wrote: > > # HG changeset patch > > # User Jakub Zelenka > > # Date 1705078404 0 > > # Fri Jan 12 16:53:24 2024 + > > # Node ID 1ff2f737bd318a730d0944a6037c8fd7c7da2656 > > # Parent ee40e2b1d0833b46128a357fbc84c6e23be9be07 > > Added

Re: processing a request without body

2024-01-12 Thread Maxim Dounin
Hello! On Fri, Jan 12, 2024 at 10:17:42PM +0800, Muhammad Nuzaihan wrote: > Hi Maxim, > > Thank you so much for your explaination. > > I have another question. If i have an empty string in my payload, it > skips the phase handler completely. > > Example: curl -X POST

Re: [PATCH] fastcgi_params: added REMOTE_HOST parameter

2024-01-12 Thread Maxim Dounin
Hello! On Fri, Jan 12, 2024 at 05:04:22PM +, Jakub Zelenka wrote: > Hi, > > I'm a PHP-FPM maintainer and some FPM users have issues with missing host > header when using HTTP/3: https://github.com/php/php-src/issues/13021 . > This is not an nginx issue as correctly noted in >

[PATCH] fastcgi_params: added REMOTE_HOST parameter

2024-01-12 Thread Jakub Zelenka
Hi, I'm a PHP-FPM maintainer and some FPM users have issues with missing host header when using HTTP/3: https://github.com/php/php-src/issues/13021 . This is not an nginx issue as correctly noted in https://trac.nginx.org/nginx/ticket/2281 but it would be nice to have fastcgi_param set for

Re: processing a request without body

2024-01-12 Thread Muhammad Nuzaihan
Hi Maxim, Thank you so much for your explaination. I have another question. If i have an empty string in my payload, it skips the phase handler completely. Example: curl -X POST http://localhost/proxy/profile/alice/comment -d '' -H 'Content-Type: application/json' the flag "-d ''" I do doing