[monitoring-plugins] Fix issue #1872

GitHub git at monitoring-plugins.org
Thu Sep 7 16:20:12 CEST 2023


    Module: monitoring-plugins
    Branch: master
    Commit: a6802bd5f50a5c12ed5bafa4fe9ee14fede7c1e1
    Author: Thoralf Rickert-Wendt <30341294+trickert76 at users.noreply.github.com>
 Committer: GitHub <noreply at github.com>
      Date: Tue Aug  8 10:22:53 2023 +0200
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=a6802bd

Fix issue #1872

---

 plugins/check_http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
 
   regmatch_t chre_pmatch[1]; // We actually do not care about this, since we only want to know IF it was found
 
-  if (regexec(&chunked_header_regex, header, 1, chre_pmatch, 0) == 0) {
+  if (!no_body && regexec(&chunked_header_regex, header, 1, chre_pmatch, 0) == 0) {
     if (verbose) {
       printf("Found chunked content\n");
     }



More information about the Commits mailing list