This is not optimal, but a better compromise than the alternative.
DNS names are case insensitive, but URLs are not.
However, URLs are very often filenames and having files which differ
only in case is already asking for trouble.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1956
d4fa192b-c00b-0410-8231-
f00ffab90ce4
b = calloc(sizeof *b, 1);
XXXAN(b);
- i = regcomp(&b->regexp, regexp, REG_EXTENDED | REG_NOSUB);
+ i = regcomp(&b->regexp, regexp, REG_EXTENDED | REG_ICASE | REG_NOSUB);
if (i) {
char buf[512];
t = calloc(sizeof *t, 1);
XXXAN(t);
/* This was already check-compiled by the VCL compiler */
- AZ(regcomp(t, re, REG_EXTENDED | (sub ? 0 : REG_NOSUB)));
+ AZ(regcomp(t, re, REG_EXTENDED | REG_ICASE | (sub ? 0 : REG_NOSUB)));
*rep = t;
}