From 4181a2ecb24d184706b8a2743e2f8935912cc1e3 Mon Sep 17 00:00:00 2001 From: "Maarten L. Hekkelman" Date: Wed, 10 Jan 2024 10:31:48 +0100 Subject: [PATCH] flush access log entries, version bump --- CMakeLists.txt | 2 +- changelog | 6 ++++++ lib-http/src/security.cpp | 2 +- lib-http/src/server.cpp | 4 ++-- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e01dcb1..d2505ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.22) -project(libzeep VERSION 6.0.12 LANGUAGES CXX) +project(libzeep VERSION 6.0.13 LANGUAGES CXX) list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) diff --git a/changelog b/changelog index a0712ad..529d66f 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,9 @@ +Version 6.0.13 +- Flush to access log after each request. (replacing all + instances of std::endl was a bit too drastic). +- Better handling of not_found +- Don't test when included in other project + Version 6.0.12 - Catch URI parse error in connection diff --git a/lib-http/src/security.cpp b/lib-http/src/security.cpp index e8be266..9f4bb23 100644 --- a/lib-http/src/security.cpp +++ b/lib-http/src/security.cpp @@ -147,7 +147,7 @@ void security_context::validate_request(request &req) const if (req_csrf_cookie != req_csrf_param) { allow = false; - std::clog << "CSRF validation failed\n"; + std::cerr << "CSRF validation failed\n"; } } diff --git a/lib-http/src/server.cpp b/lib-http/src/server.cpp index 4820ec6..ee04c2f 100644 --- a/lib-http/src/server.cpp +++ b/lib-http/src/server.cpp @@ -324,9 +324,9 @@ void basic_server::log_request(const std::string &client, << '"' << userAgent << '"' << ' '; if (entry.empty()) - std::cout << "-\n"; + std::cout << "-" << std::endl; else - std::cout << std::quoted(entry) << '\n'; + std::cout << std::quoted(entry) << std::endl; } catch (...) {