Merge pull request #1901 from trickert76/patch-chunk-nobody

check_http: Fixing unchunking body when no body is present
This commit is contained in:
Lorenz Kästle 2023-09-07 16:17:49 +02:00 committed by GitHub
commit 0613648bb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");
}