From 6243be0e9ea67e9a5f9c6869757bad0f6c53f108 Mon Sep 17 00:00:00 2001 From: Alexey Timin Date: Mon, 6 Mar 2023 11:36:00 +0100 Subject: [PATCH] Fix reported content length for HttpResponse::endWithoutBody (#1557) --- src/HttpResponse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpResponse.h b/src/HttpResponse.h index bf4d381..8b04196 100644 --- a/src/HttpResponse.h +++ b/src/HttpResponse.h @@ -420,7 +420,7 @@ public: /* End without a body (no content-length) or end with a spoofed content-length. */ void endWithoutBody(std::optional reportedContentLength = std::nullopt, bool closeConnection = false) { if (reportedContentLength.has_value()) { - //internalEnd({nullptr, 0}, reportedContentLength.value(), false, true, closeConnection); + internalEnd({nullptr, 0}, reportedContentLength.value(), false, true, closeConnection); } else { internalEnd({nullptr, 0}, 0, false, false, closeConnection); }