mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-11 09:40:05 -04:00
Merge pull request #1901 from trickert76/patch-chunk-nobody
check_http: Fixing unchunking body when no body is present
This commit is contained in:
commit
0613648bb9
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue