@@ -4111,7 +4111,7 @@ inline bool parse_range_header(const std::string &s, Ranges &ranges) try {
41114111 if (std::regex_match (s, m, re_first_range)) {
41124112 auto pos = static_cast <size_t >(m.position (1 ));
41134113 auto len = static_cast <size_t >(m.length (1 ));
4114- bool all_valid_ranges = true ;
4114+ auto all_valid_ranges = true ;
41154115 split (&s[pos], &s[pos + len], ' ,' , [&](const char *b, const char *e) {
41164116 if (!all_valid_ranges) return ;
41174117 static auto re_another_range = std::regex (R"( \s*(\d*)-(\d*))" );
@@ -6390,7 +6390,7 @@ Server::process_request(Stream &strm, bool close_connection,
63906390 }
63916391
63926392 // Rounting
6393- bool routed = false ;
6393+ auto routed = false ;
63946394#ifdef CPPHTTPLIB_NO_EXCEPTIONS
63956395 routed = routing (req, res, strm);
63966396#else
@@ -7206,7 +7206,7 @@ inline ContentProviderWithoutLength ClientImpl::get_multipart_content_provider(
72067206 }
72077207
72087208 DataSink cur_sink;
7209- bool has_data = true ;
7209+ auto has_data = true ;
72107210 cur_sink.write = sink.write ;
72117211 cur_sink.done = [&]() { has_data = false ; };
72127212
@@ -8335,10 +8335,9 @@ inline bool SSLClient::connect_with_proxy(Socket &socket, Response &res,
83358335 }
83368336
83378337 // If status code is not 200, proxy request is failed.
8338- // Set error to ProxyConnection and return proxy response
8338+ // Set error to ProxyConnection and return proxy response
83398339 // as the response of the request
8340- if (proxy_res.status != 200 )
8341- {
8340+ if (proxy_res.status != 200 ) {
83428341 error = Error::ProxyConnection;
83438342 res = std::move (proxy_res);
83448343 // Thread-safe to close everything because we are assuming there are
@@ -8353,7 +8352,7 @@ inline bool SSLClient::connect_with_proxy(Socket &socket, Response &res,
83538352}
83548353
83558354inline bool SSLClient::load_certs () {
8356- bool ret = true ;
8355+ auto ret = true ;
83578356
83588357 std::call_once (initialize_cert_, [&]() {
83598358 std::lock_guard<std::mutex> guard (ctx_mutex_);
0 commit comments