<div dir="ltr"><div>Based upon a community request, I&#39;m making a small patch that ensures the Content-Length header is left intact when no data policies are in the pipeline (instead of using chunked encoding). This is handy if you want the client to know how far downloaded their file is, for instance.</div><div><br></div><div><b>Let me know if this might have any adverse impact upon you.</b></div><div><br></div><div>Example:</div><div><br></div><div>CORS &lt;-&gt; Rate Limiting  - Content-Length set.</div><div>CORS &lt;-&gt; [ URL Rewriting ] - Transfer-Encoding: chunked; *no* Content-Length set.</div><div><br></div><div>We don&#39;t set Content-Length in cases when body mutation may occur because it would require buffering to determine the final size before transmission - which is something we avoid for performance reasons.</div><div><br></div><div>Regards,</div><div>Marc</div></div>