From 620cecf4d3697eaa7e265c20758b0372d563699f Mon Sep 17 00:00:00 2001 From: des Date: Wed, 19 Mar 2008 12:27:43 +0000 Subject: [PATCH] s/remove/unset/, but keep remove as an alias for backward compat. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2607 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvcl/vcc_action.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/varnish-cache/lib/libvcl/vcc_action.c b/varnish-cache/lib/libvcl/vcc_action.c index 95d5978c..ae8940b7 100644 --- a/varnish-cache/lib/libvcl/vcc_action.c +++ b/varnish-cache/lib/libvcl/vcc_action.c @@ -276,7 +276,7 @@ parse_set(struct tokenlist *tl) /*--------------------------------------------------------------------*/ static void -parse_remove(struct tokenlist *tl) +parse_unset(struct tokenlist *tl) { struct var *vp; @@ -286,7 +286,7 @@ parse_remove(struct tokenlist *tl) ERRCHK(tl); assert(vp != NULL); if (vp->fmt != STRING || vp->hdr == NULL) { - vsb_printf(tl->sb, "Only http header lines can be removed.\n"); + vsb_printf(tl->sb, "Only http header lines can be unset.\n"); vcc_ErrWhere(tl, tl->t); return; } @@ -367,7 +367,8 @@ static struct action_table { #undef VCL_RET_MAC_E { "call", parse_call }, { "set", parse_set }, - { "remove", parse_remove }, + { "unset", parse_unset }, + { "remove", parse_unset }, /* backward compatibility */ { "purge_url", parse_purge_url }, { "purge_hash", parse_purge_hash }, { "esi", parse_esi }, -- 2.39.5