<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><br></div><div>Hi</div><div><br></div><div>I am appreciate any help I can get on the following issues.<br></div><div>I am writing my own module.</div><div><br></div><div>1. I can see in function <span style="font-weight: bold;">ngx_http_send_special_response</span></div>
<div> that it calculates the content length of the error page even if the request signed as header only (r->header_only = 1)</div>
<div> and set the content length header with value, after sending the header it does not send the body ( because r->header_only = 1)</div>
<div> so the response arrive with content length different than 0 but without body <br></div><div> Is it a BUG?<br></div>
<div><br></div><div>2.In the module I am trying to redirect the request with status code 302 (NGX_HTTP_MOVED_TEMPORARILY)</div><div> Trying to use<span style="font-weight: bold;"> r->headers_out.location</span> for the Alternate URL failed, I looked in the code and saw the Location must start with "/" - why?<br></div><div> In the end I add it to <span style="font-weight: bold;">r->headers_out.headers</span></div><div> using <span style="font-weight: bold;">header = ngx_list_push(&r->headers_out.headers);</span></div><div> Is it the write way to do it?</div><div><br></div><div>3. Can you explain please the different between</div><div> a. r->headers_out.content_length_n</div><div> b. r->headers_out.content_length</div><div><br></div><div>4. Can you explain the usage of the <span style="font-weight: bold;">hash </span>field in <span style="font-weight:
bold;">ngx_table_elt_t</span><br></div><div><br></div><div>Thanks</div><div>Hagai Avrahami<br></div><div> <br></div></div></body></html>