Skip to content

Commit

Permalink
flush access log entries, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mhekkel committed Jan 10, 2024
1 parent f8771cd commit 4181a2e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 6 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib-http/src/security.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}

Expand Down
4 changes: 2 additions & 2 deletions lib-http/src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 (...)
{
Expand Down

0 comments on commit 4181a2e

Please sign in to comment.