[dev] add support for chunked input encoding in nginx

Mansoor Peerbhoy mansoor at zimbra.com
Tue Aug 5 11:45:31 MSD 2008


Hi Manlio 

Were you able to find a work-around for this ? 
I'm facing the exact same issue where a client is posting a largish body using chunked transfer-encoding without content-length, and so NGINX croaks at this same point. 

Any help will be appreciated. 

Regards, 
Mansoor 


----- "Manlio Perillo" <manlio.perillo at gmail.com> wrote: 
| From: "Manlio Perillo" <manlio.perillo at gmail.com> 
| To: nginx at sysoev.ru 
| Sent: Tuesday, April 1, 2008 6:44:10 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi 
| Subject: [dev] add support for chunked input encoding in nginx 
| 
| Hi. 
| 
| How hard is to add support for chunked input encoding in Nginx? 
| I'm not talking about generic support, but only support for a very 
| specialized module I'm planning to write. 
| 
| 
| Reading the sources I see this: 
| 
| if (r->method & (NGX_HTTP_POST|NGX_HTTP_PUT) 
| && r->headers_in.content_length_n == -1) 
| { 
| ngx_log_error(NGX_LOG_INFO, r->connection->log, 0, 
| "client sent POST method without \"Content-Length\" header"); 
| ngx_http_finalize_request(r, NGX_HTTP_LENGTH_REQUIRED); 
| return NGX_ERROR; 
| } 
| 
| 
| This code can be relaxed, but is it safe? 
| 
| 
| 
| Thanks Manlio Perillo 
| 
| 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080805/9c55d8c3/attachment.html>


More information about the nginx mailing list