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 http://localhost/proxy/profile/alice/comment -d
> '' -H 'Content-Type: application/json'
> 
> the flag "-d ''"
> 
> I do doing it at NGX_HTTP_ACCESS_PHASE in the handler. It seems that
> if "content_length = 0", it skips the access phase handler as well?

Access phase handlers are called for all requests (unless these 
are rejected at earlier stages).  If in doubt, consider configuring 
debug logging and add appropriate debug logging to your module, it 
should make things obvious enough.

-- 
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to