| 665 | } |
| 666 | |
| 667 | static bool |
| 668 | set_negative_caching_list(const char *name, RecDataT dtype, RecData data, HttpConfigParams *c, bool update) |
| 669 | { |
| 670 | bool ret = false; |
| 671 | HttpStatusBitset set; |
| 672 | |
| 673 | // values from proxy.config.http.negative_caching_list |
| 674 | if (0 == strcasecmp("proxy.config.http.negative_caching_list", name) && RECD_STRING == dtype && data.rec_string) { |
| 675 | // parse the list of status codes |
| 676 | set = parse_http_status_code_list({data.rec_string, strlen(data.rec_string)}); |
| 677 | } |
| 678 | |
| 679 | // set the return value |
| 680 | if (set != c->negative_caching_list) { |
| 681 | c->negative_caching_list = set; |
| 682 | ret = ret || update; |
| 683 | } |
| 684 | |
| 685 | return ret; |
| 686 | } |
| 687 | |
| 688 | // Method of getting the status code bitset |
| 689 | static int |
no test coverage detected