| 706 | } |
| 707 | |
| 708 | static bool |
| 709 | set_negative_revalidating_list(const char *name, RecDataT dtype, RecData data, HttpConfigParams *c, bool update) |
| 710 | { |
| 711 | bool ret = false; |
| 712 | HttpStatusBitset set; |
| 713 | |
| 714 | // values from proxy.config.http.negative_revalidating_list |
| 715 | if (0 == strcasecmp("proxy.config.http.negative_revalidating_list", name) && RECD_STRING == dtype && data.rec_string) { |
| 716 | // parse the list of status codes |
| 717 | set = parse_http_status_code_list({data.rec_string, strlen(data.rec_string)}); |
| 718 | } |
| 719 | |
| 720 | // set the return value |
| 721 | if (set != c->negative_revalidating_list) { |
| 722 | c->negative_revalidating_list = set; |
| 723 | ret = ret || update; |
| 724 | } |
| 725 | |
| 726 | return ret; |
| 727 | } |
| 728 | |
| 729 | // Method of getting the status code bitset |
| 730 | static int |
no test coverage detected