From fe2726eb6b5e5576e292b0327d579ac9a35acc11 Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Tue, 27 Aug 2013 08:49:13 +0200 Subject: Some more cleanups --- config/varnish3/varnish.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'config/varnish3') diff --git a/config/varnish3/varnish.inc b/config/varnish3/varnish.inc index a1f0f22b..6a1e3af1 100644 --- a/config/varnish3/varnish.inc +++ b/config/varnish3/varnish.inc @@ -501,16 +501,16 @@ function sync_package_varnish() { } if ($vcl['rfc2616']) { - $vcl_recv_action_basic.="\t#Be rfc2616 compliant\n"; - $vcl_recv_action_basic.="\t".'if (req.request ~ "^(GET|HEAD|PUT|POST|TRACE|OPTIONS|DELETE)$") {'."\n\t\treturn(lookup);\n\t\t}\n\telse\t{\n\t\treturn(pipe);\n\t\t}\n"; + $vcl_recv_action_basic .= "\t#Be rfc2616 compliant\n"; + $vcl_recv_action_basic .= "\t".'if (req.request ~ "^(GET|HEAD|PUT|POST|TRACE|OPTIONS|DELETE)$") {'."\n\t\treturn(lookup);\n\t\t}\n\telse\t{\n\t\treturn(pipe);\n\t\t}\n"; //$vcl_recv_action_basic.="\t".'if (req.request != "GET" && req.request != "HEAD" && req.request != "PUT" && reqa.request != "POST" &&'."\n"; //$vcl_recv_action_basic.="\t".' req.request != "TRACE" && req.request != "OPTIONS" && req.request != "DELETE") {return(pipe);}'."\n\n"; } else - $vcl_recv_action_basic.="\t".'if (req.request != "GET" && req.request != "HEAD") {return(pipe);}'."\n"; + $vcl_recv_action_basic .= "\tif (req.request != \"GET\" && req.request != \"HEAD\") {return(pipe);}\n"; if ($vcl['restarts']) - $vcl_restarts=$vcl['restarts']; + $vcl_restarts = $vcl['restarts']; if ($vcl['htmlerror']) - $errorvcl=text_area_decode($vcl['htmlerror']); + $errorvcl = text_area_decode($vcl['htmlerror']); } if (!$errorvcl) -- cgit v1.2.3