From 64f72bce865b67c4df9bb5f20b35c289f287f86e Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Mon, 3 Apr 2023 22:14:26 +0000 Subject: [PATCH] Remove dead "binary HTTP header logging" code (-DHEADERS_LOG) (#1319) The secret HEADERS_LOG hack was added in 2000 commit c360932 to collect "better stats" than mgr:http_headers. The corresponding access_log.cc code does not build since 2006 commit 985c86b (at least): * 'm' was not declared in this scope * cannot convert 'int*' to 'const char*' * cannot convert 'short unsigned int*' to 'const char*' * invalid conversion from 'unsigned char*' to 'const char*' * invalid conversion from 'void*' to 'HttpReply*' * invalid conversion from 'void*' to 'HttpRequest*' * invalid use of incomplete type 'class HttpHdrCc' * too few arguments to function 'logfileOpen(const char*, size_t, int)' The removed hack is not to be confused with log_mime_hdrs directive. --- doc/release-notes/release-7.sgml.in | 4 +- src/client_side_request.cc | 4 -- src/esi/Include.cc | 5 -- src/http.cc | 5 -- src/http/Stream.cc | 3 -- src/log/access_log.cc | 80 ----------------------------- src/log/access_log.h | 5 -- src/tests/stub_liblog.cc | 3 -- 8 files changed, 3 insertions(+), 106 deletions(-) diff --git a/doc/release-notes/release-7.sgml.in b/doc/release-notes/release-7.sgml.in index 0955ace31f..ecb5b90267 100644 --- a/doc/release-notes/release-7.sgml.in +++ b/doc/release-notes/release-7.sgml.in @@ -97,7 +97,9 @@ This section gives an account of those changes in three categories: Removed options