For the record, I found out how to make it work; I must set the buffer I create as being in memory, or the function ngx_buf_size() returns 0. Reading it's deffinition, we can see that it's meant to do so: #define ngx_buf_size(b) \ (ngx_buf_in_memory(b) ? (off_t) (b->last - b->pos): \by acacio.centeno - How to...
I'm not sure this is the best forum section for questions about writing modules, so feel free to redirect me to a more apropriate section. I'm reading the Emiller's guide to Nginx module development (http://www.evanmiller.org/nginx-modules-guide.html) about how to write filters. I've copied and pasted his example, the code is been called, but no extra content is being added to the request's bodby acacio.centeno - How to...
![]() |
![]() |
![]() |
![]() |
|