For HEAD request, only quit after we send the new line that ends the headers section. This was making nginx unhappy. Thanks arg for reporting, tracking it down and fixing this bug!
This commit is contained in:
parent
92a6125952
commit
9a65fb1b4e
1 changed files with 2 additions and 2 deletions
|
|
@ -123,13 +123,13 @@ fn werc_exec_request {
|
|||
for(h in $extraHttpHeaders)
|
||||
echo $h
|
||||
echo 'Content-Type: '^$http_content_type
|
||||
if(~ $REQUEST_METHOD HEAD)
|
||||
exit
|
||||
echo # End of HTTP headers
|
||||
|
||||
if(! ~ $#debug 0)
|
||||
dprint $"SERVER_NAME^$"REQUEST_URI - $"HTTP_USER_AGENT - $"REQUEST_METHOD - $"handler_body_main - $"master_template
|
||||
|
||||
if(~ $REQUEST_METHOD HEAD)
|
||||
exit
|
||||
|
||||
template $headers $master_template | awk_buffer
|
||||
echo $res_tail
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue