diff options
author | Warren Baker <warren@decoy.co.za> | 2013-08-27 08:49:13 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2013-08-27 08:49:13 +0200 |
commit | fe2726eb6b5e5576e292b0327d579ac9a35acc11 (patch) | |
tree | 8437e457216cfea62f31f9fa804ac951147e6acb /config/varnish3 | |
parent | 44c728f33e03612c2ead727c53a1fc42c440e95c (diff) | |
download | pfsense-packages-fe2726eb6b5e5576e292b0327d579ac9a35acc11.tar.gz pfsense-packages-fe2726eb6b5e5576e292b0327d579ac9a35acc11.tar.bz2 pfsense-packages-fe2726eb6b5e5576e292b0327d579ac9a35acc11.zip |
Some more cleanups
Diffstat (limited to 'config/varnish3')
-rw-r--r-- | config/varnish3/varnish.inc | 10 |
1 files changed, 5 insertions, 5 deletions
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) |