Module: monitoring-plugins
    Branch: master
    Commit: a6802bd5f50a5c12ed5bafa4fe9ee14fede7c1e1
    Author: Thoralf Rickert-Wendt <30341294+tricker...@users.noreply.github.com>
 Committer: GitHub <nore...@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");
     }

Reply via email to