shithub: werc

Download patch

ref: eafc5b1bbbde364c1abeb48e3cafbdf409a8931c
parent: 7b51fc262c756edc719a834acdf21df07292dfab
author: uriel <uriel@engel.se.cat-v.org>
date: Sat Mar 21 17:08:49 EDT 2009

Add missing new line separating http headers from body, thanks Nsz and Arg for pointing this regresion.

--- a/bin/werc.rc
+++ b/bin/werc.rc
@@ -114,6 +114,7 @@
     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