[master] 738311611 Example fix.
Geoff Simmons
geoff at uplex.de
Tue Aug 7 12:15:12 UTC 2018
commit 7383116117b1b141dd4ad82b163b2dcdab759a47
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