[6.0] 3207306db Example fix.
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Thu Aug 16 08:53:23 UTC 2018
commit 3207306db060e40898f32e4da34aa797a49a666d
Author: Geoff Simmons <geoff at uplex.de>
Date: Tue Aug 7 14:14:35 2018 +0200
Example fix.
diff --git a/lib/libvmod_std/vmod.vcc b/lib/libvmod_std/vmod.vcc
index 87bcca003..c30172ed1 100644
--- a/lib/libvmod_std/vmod.vcc
+++ b/lib/libvmod_std/vmod.vcc
@@ -406,9 +406,12 @@ Description
header is specified.
Examples
- | # Matches URLs such as /foo/bar and /foo/bar/baz
+ | # Matches URLs such as /foo/bar and /foo/baz
| if (std.fnmatch("/foo/\*", req.url)) { ... }
|
+ | # Matches URLs such as /foo/bar/baz and /foo/baz/quux
+ | if (std.fnmatch("/foo/\*/\*", bereq.url)) { ... }
+ |
| # Matches /foo/bar/quux, but not /foo/bar/baz/quux
| if (std.fnmatch("/foo/\*/quux", req.url)) { ... }
|
More information about the varnish-commit
mailing list