Thanks for your prompt reply.
Why do I have to do the work in the post handler? Now I have a stub post
handler. ngx_http_read_client_request_body() does nothing but load the
request body into the original request, which is used by the next handler.
Everything seems to be working fine to me.
I'm n
Maxim,
You are right. Since I need to make a hash of the original request's body, I
do make call to ngx_http_read_client_request_body().
What's the best way to decrement the count then? Simply "r->count--;" before
returning from the module.
By the way, in my access phase module, I need to send a
BTW, I can add "r->count--;" in my module and it seems to work. But I don't
feel it is the right thing especially when I'm not sure how it works.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,253906,253907#msg-253907
___
nginx mailing list
n
Hey all,
I'm writing an authentication module that is structurally very similar to
ngx_http_auth_request_module
(https://github.com/PiotrSikora/ngx_http_auth_request_module/blob/master/ngx_http_auth_request_module.c).
It basically sends a subrequest to a service for auth. For testing, I put a
hell