[master] 1a25542 Another error/synth.

Per Buer perbu at varnish-software.com
Thu Mar 20 11:46:59 CET 2014


commit 1a25542ffd040759aecf49c91eab4b2489d7fa74
Author: Per Buer <perbu at varnish-software.com>
Date:   Thu Mar 20 11:42:50 2014 +0100

    Another error/synth.

diff --git a/doc/sphinx/users-guide/purging.rst b/doc/sphinx/users-guide/purging.rst
index 5d7deda..4aad344 100644
--- a/doc/sphinx/users-guide/purging.rst
+++ b/doc/sphinx/users-guide/purging.rst
@@ -37,7 +37,7 @@ following VCL in place::
 
 	  if (req.method == "PURGE") {
 		  if (!client.ip ~ purge) {
-			  error 405 "Not allowed.";
+			  return(synth(405,"Not allowed.");
 		  }
                   # jump to hit/miss
 		  return (purge);



More information about the varnish-commit mailing list