Hi Uriel,

see attached two patches for werc-dev

- the werc.rc diff makes http head requests working in nginx, it
expects an empty line terminator for the http header

- the sitemap.tpl fixes the _werc/config inclusion, if $sitedir is
non-relative to .

Kind regards,
Anselm

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"werc" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/werc9?hl=en
-~----------~----~----~----~------~----~------~--~---

diff -r caacd7316fbf bin/werc.rc
--- a/bin/werc.rc       Sat Aug 08 05:32:42 2009 +0200
+++ b/bin/werc.rc       Sun Aug 09 10:16:24 2009 +0000
@@ -123,13 +123,13 @@
     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 0
     
     template $headers $master_template | awk_buffer
     echo $res_tail
diff -r caacd7316fbf tpl/sitemap.tpl
--- a/tpl/sitemap.tpl   Sat Aug 08 05:32:42 2009 +0200
+++ b/tpl/sitemap.tpl   Sun Aug 09 17:14:28 2009 +0000
@@ -17,7 +17,7 @@
     d=$1
     dirfilter=$saveddf
     if(test -f $d/_werc/config)
-        . ./$d/_werc/config
+        . $d/_werc/config
 
     if(~ $#perm_redir_to 0) {
         echo '<ul class="sitemap-list">'

Reply via email to