2 diff -c squid/src/acl.c:1.270.2.29 squid/src/acl.c:1.270.2.30
3 *** squid/src/acl.c:1.270.2.29 Sat Sep 25 05:56:16 2004
4 --- squid/src/acl.c Wed Oct 20 17:18:36 2004
7 q = xcalloc(1, sizeof(acl_hdr_data));
8 q->hdr_name = xstrdup(t);
9 q->hdr_id = httpHeaderIdByNameDef(t, strlen(t));
10 ! aclParseRegexList(q->reglist);
12 debug(28, 0) ("%s line %d: %s\n", cfg_filename, config_lineno, config_input_line);
13 debug(28, 0) ("aclParseHeader: No pattern defined '%s'\n", t);
15 q = xcalloc(1, sizeof(acl_hdr_data));
16 q->hdr_name = xstrdup(t);
17 q->hdr_id = httpHeaderIdByNameDef(t, strlen(t));
18 ! aclParseRegexList(&q->reglist);
20 debug(28, 0) ("%s line %d: %s\n", cfg_filename, config_lineno, config_input_line);
21 debug(28, 0) ("aclParseHeader: No pattern defined '%s'\n", t);
24 aclDumpHeader(acl_hdr_data * hd)
27 ! relist *data = hd->reglist;
28 ! wordlistAdd(&W, httpHeaderNameById(hd->hdr_id));
29 ! while (data != NULL) {
30 ! wordlistAdd(&W, data->pattern);
33 ! return aclDumpRegexList(hd->reglist);
38 aclDumpHeader(acl_hdr_data * hd)
45 ! memBufPrintf(&mb, "%s", hd->hdr_name);
46 ! for (data = hd->reglist; data; data = data->next) {
47 ! memBufPrintf(&mb, " %s", data->pattern);
49 ! wordlistAdd(&W, mb.buf);