summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-09-07 14:17:49 (GMT)
committerGitHub <noreply@github.com>2023-09-07 14:17:49 (GMT)
commit0613648bb99cfae9592690d386b3359304e875b6 (patch)
treeeb44d60d0e27445ce7c2eb2a1d960053bd2e29c4 /plugins/check_http.c
parent15d7ca8eb1edec26a44d361b57e53831f5c765f7 (diff)
parent128910f79a92655bba65fffa426e1d8498bdeae3 (diff)
downloadmonitoring-plugins-0613648bb99cfae9592690d386b3359304e875b6.tar.gz
Merge pull request #1901 from trickert76/patch-chunk-nobody
check_http: Fixing unchunking body when no body is present
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 1288c41..718c8ee 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -1279,7 +1279,7 @@ check_http (void)
1279 1279
1280 regmatch_t chre_pmatch[1]; // We actually do not care about this, since we only want to know IF it was found 1280 regmatch_t chre_pmatch[1]; // We actually do not care about this, since we only want to know IF it was found
1281 1281
1282 if (regexec(&chunked_header_regex, header, 1, chre_pmatch, 0) == 0) { 1282 if (!no_body && regexec(&chunked_header_regex, header, 1, chre_pmatch, 0) == 0) {
1283 if (verbose) { 1283 if (verbose) {
1284 printf("Found chunked content\n"); 1284 printf("Found chunked content\n");
1285 } 1285 }