From d05c34360212cda80d3a8d7fa3ea947b0d01f5ed Mon Sep 17 00:00:00 2001 From: yhirose Date: Sat, 16 Apr 2022 21:01:14 -0400 Subject: [PATCH] Release v0.10.5 --- httplib.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/httplib.h b/httplib.h index f03d449..f3c1c77 100644 --- a/httplib.h +++ b/httplib.h @@ -1,21 +1,21 @@ // // httplib.h // -// Copyright (c) 2021 Yuji Hirose. All rights reserved. +// Copyright (c) 2022 Yuji Hirose. All rights reserved. // MIT License // #ifndef CPPHTTPLIB_HTTPLIB_H #define CPPHTTPLIB_HTTPLIB_H +#define CPPHTTPLIB_VERSION_MAJOR 0 +#define CPPHTTPLIB_VERSION_MINOR 10 +#define CPPHTTPLIB_VERSION_PATCH 5 + /* * Configuration */ -#define CPPHTTPLIB_VERSION_MAJOR 0 -#define CPPHTTPLIB_VERSION_MINOR 10 -#define CPPHTTPLIB_VERSION_PATCH 4 - #ifndef CPPHTTPLIB_KEEPALIVE_TIMEOUT_SECOND #define CPPHTTPLIB_KEEPALIVE_TIMEOUT_SECOND 5 #endif @@ -6198,10 +6198,9 @@ inline bool ClientImpl::write_request(Stream &strm, Request &req, #ifndef CPPHTTPLIB_NO_DEFAULT_USER_AGENT if (!req.has_header("User-Agent")) { - auto agent = "cpp-httplib/" + - std::to_string(CPPHTTPLIB_VERSION_MAJOR) + "." + - std::to_string(CPPHTTPLIB_VERSION_MINOR) + "." + - std::to_string(CPPHTTPLIB_VERSION_PATCH); + auto agent = "cpp-httplib/" + std::to_string(CPPHTTPLIB_VERSION_MAJOR) + + "." + std::to_string(CPPHTTPLIB_VERSION_MINOR) + "." + + std::to_string(CPPHTTPLIB_VERSION_PATCH); req.headers.emplace("User-Agent", agent); } #endif