<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" &lt;manlio.perillo@gmail.com&gt; wrote:
<br>| From: "Manlio Perillo" &lt;manlio.perillo@gmail.com&gt;<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-&gt;method &amp; (NGX_HTTP_POST|NGX_HTTP_PUT)<br>| &nbsp;&nbsp; &nbsp; &amp;&amp; r-&gt;headers_in.content_length_n == -1)<br>| {<br>| &nbsp;&nbsp; &nbsp; ngx_log_error(NGX_LOG_INFO, r-&gt;connection-&gt;log, 0,<br>| &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "client sent POST method without \"Content-Length\" header");<br>| &nbsp;&nbsp; &nbsp; ngx_http_finalize_request(r, NGX_HTTP_LENGTH_REQUIRED);<br>| &nbsp;&nbsp; &nbsp; return NGX_ERROR;<br>| }<br>| <br>| <br>| This code can be relaxed, but is it safe?<br>| <br>| <br>| <br>| Thanks &nbsp;Manlio Perillo
<br>| <br>| </div></body></html>