[master] 2591b9a fix the std.getenv example

Nils Goroll nils.goroll at uplex.de
Thu Mar 2 10:06:05 CET 2017


commit 2591b9a94a06a53572e59a0182cda0e4bf20da46
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Thu Mar 2 09:55:50 2017 +0100

    fix the std.getenv example

diff --git a/lib/libvmod_std/vmod.vcc b/lib/libvmod_std/vmod.vcc
index 9917e0f..ecbd449 100644
--- a/lib/libvmod_std/vmod.vcc
+++ b/lib/libvmod_std/vmod.vcc
@@ -281,7 +281,7 @@ Description
 
 	See getenv(3)
 Example
-	| set req.http.My-Env = getenv("MY_ENV");
+	| set req.http.My-Env = std.getenv("MY_ENV");
 
 $Function VOID late_100_continue(BOOL late)
 



More information about the varnish-commit mailing list