PATCH: Fix 1216 - Bug:'error': not a valid action in method 'vcl_deliver'.
Federico G. Schwindt
fgsch at lodoss.net
Thu Oct 18 18:27:59 CEST 2012
Remove error from documentation and add missing backend declaration from
the test so it shows the expected error.
f.-
diff --git a/bin/varnishtest/tests/r01027.vtc b/bin/varnishtest/tests/r01027.vtc
index 6c20b00..7545adc 100644
--- a/bin/varnishtest/tests/r01027.vtc
+++ b/bin/varnishtest/tests/r01027.vtc
@@ -1,6 +1,7 @@
varnishtest "Test if you can error in vcl_deliver"
varnish v1 -badvcl {
+ backend b { .host = "127.0.0.1"; }
sub vcl_deliver {
error 201 "ok";
}
diff --git a/doc/sphinx/reference/vcl.rst b/doc/sphinx/reference/vcl.rst
index 4971315..1c1d8a2 100644
--- a/doc/sphinx/reference/vcl.rst
+++ b/doc/sphinx/reference/vcl.rst
@@ -512,9 +512,6 @@ vcl_deliver
deliver
Deliver the object to the client.
- error code [reason]
- Return the specified error code to the client and abandon the request.
-
restart
Restart the transaction. Increases the restart counter. If the number
of restarts is higher than *max_restarts* varnish emits a guru meditation
More information about the varnish-dev
mailing list