summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 3e021c5..1f7bd0b 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -1257,10 +1257,10 @@ int check_http(void) {
1257 1257
1258 // At this point we should test if the content is chunked and unchunk it, so 1258 // At this point we should test if the content is chunked and unchunk it, so
1259 // it can be searched (and possibly printed) 1259 // it can be searched (and possibly printed)
1260 const char *chunked_header_regex_string = "Transfer-Encoding:\\s*chunked\\s*"CRLF; 1260 const char *chunked_header_regex_string = "Transfer-Encoding: *chunked *";
1261 regex_t chunked_header_regex; 1261 regex_t chunked_header_regex;
1262 1262
1263 if (regcomp(&chunked_header_regex, chunked_header_regex_string, 0)) { 1263 if (regcomp(&chunked_header_regex, chunked_header_regex_string, REG_ICASE)) {
1264 die(STATE_UNKNOWN, "HTTP %s: %s\n", state_text(STATE_UNKNOWN), "Failed to compile chunked_header_regex regex"); 1264 die(STATE_UNKNOWN, "HTTP %s: %s\n", state_text(STATE_UNKNOWN), "Failed to compile chunked_header_regex regex");
1265 } 1265 }
1266 1266