r2607 - trunk/varnish-cache/lib/libvcl

des at projects.linpro.no des at projects.linpro.no
Wed Mar 19 13:27:43 CET 2008


Author: des
Date: 2008-03-19 13:27:43 +0100 (Wed, 19 Mar 2008)
New Revision: 2607

Modified:
   trunk/varnish-cache/lib/libvcl/vcc_action.c
Log:
s/remove/unset/, but keep remove as an alias for backward compat.


Modified: trunk/varnish-cache/lib/libvcl/vcc_action.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_action.c	2008-03-16 14:11:26 UTC (rev 2606)
+++ trunk/varnish-cache/lib/libvcl/vcc_action.c	2008-03-19 12:27:43 UTC (rev 2607)
@@ -276,7 +276,7 @@
 /*--------------------------------------------------------------------*/
 
 static void
-parse_remove(struct tokenlist *tl)
+parse_unset(struct tokenlist *tl)
 {
 	struct var *vp;
 
@@ -286,7 +286,7 @@
 	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 @@
 #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 },




More information about the varnish-commit mailing list