]> err.no Git - varnish/commitdiff
s/remove/unset/, but keep remove as an alias for backward compat.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 19 Mar 2008 12:27:43 +0000 (12:27 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 19 Mar 2008 12:27:43 +0000 (12:27 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2607 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_action.c

index 95d5978cc4dbe0ab8f6b1a73d88868946a661584..ae8940b73a67271a27a859559d8fa3fe543c93a1 100644 (file)
@@ -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 },