<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'>Hi Manlio<br><br>Were you able to find a work-around for this ? <br>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.<br><br>Any help will be appreciated.<br><br>Regards,<br>Mansoor<br><br><br>----- "Manlio Perillo" <manlio.perillo@gmail.com> wrote:
<br>| From: "Manlio Perillo" <manlio.perillo@gmail.com><br>| To: nginx@sysoev.ru<br>| Sent: Tuesday, April 1, 2008 6:44:10 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi<br>| Subject: [dev] add support for chunked input encoding in nginx<br>|<br>| Hi.<br>| <br>| How hard is to add support for chunked input encoding in Nginx?<br>| I'm not talking about generic support, but only support for a very <br>| specialized module I'm planning to write.<br>| <br>| <br>| Reading the sources I see this:<br>| <br>| if (r->method & (NGX_HTTP_POST|NGX_HTTP_PUT)<br>| && r->headers_in.content_length_n == -1)<br>| {<br>| ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,<br>| "client sent POST method without \"Content-Length\" header");<br>| ngx_http_finalize_request(r, NGX_HTTP_LENGTH_REQUIRED);<br>| return NGX_ERROR;<br>| }<br>| <br>| <br>| This code can be relaxed, but is it safe?<br>| <br>| <br>| <br>| Thanks Manlio Perillo
<br>| <br>| </div></body></html>