File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ cm4all-beng-proxy (21.18) unstable; urgency=low
44 * bp: reduce MOUNT_LISTEN_STREAM idle timeout to 2 minutes
55 * http_client: fix use-after-free bug
66 * http_server: fix use-after-free bug
7+ * http_server: do not log LENGTH attribute for response without body
78 * istream/dechunk: fix integer overflow
89
910 --
Original file line number Diff line number Diff line change @@ -211,10 +211,6 @@ HttpServerConnection::SubmitResponse(HttpStatus status,
211211 GrowingBuffer headers3 = headers.ToBuffer ();
212212 headers3.Write (" \r\n " sv);
213213
214- /* make sure the access logger gets a negative value if there
215- is no response body */
216- response.length -= !body;
217-
218214#ifdef HAVE_URING
219215 if (auto *uring_queue = socket->GetUringQueue ()) {
220216 assert (uring_send == nullptr );
@@ -232,6 +228,10 @@ HttpServerConnection::SubmitResponse(HttpStatus status,
232228 assert (header_length.exhaustive );
233229 response.length = -header_length.length ;
234230
231+ /* make sure the access logger gets a negative value if there
232+ is no response body */
233+ response.length -= !body;
234+
235235 SetResponseIstream (NewConcatIstream (request_pool, std::move (header_stream),
236236 std::move (body)));
237237 DeferWrite ();
You can’t perform that action at this time.
0 commit comments