From 2b612ad9ae0bdcf7e2f294b2f3d2563c4816c095 Mon Sep 17 00:00:00 2001 From: Xuan Son Nguyen Date: Tue, 6 Jan 2026 21:14:25 +0100 Subject: [PATCH] https working --- tools/server/server-models.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/server/server-models.cpp b/tools/server/server-models.cpp index bd0aa9dd63..51de216d46 100644 --- a/tools/server/server-models.cpp +++ b/tools/server/server-models.cpp @@ -1000,12 +1000,12 @@ server_http_proxy::server_http_proxy( int32_t timeout_write ) { // shared between reader and writer threads - auto cli = std::make_shared(host, port); + auto cli = std::make_shared(host, port); auto pipe = std::make_shared>(); if (port == 443) { #ifdef CPPHTTPLIB_OPENSSL_SUPPORT - cli.reset(new httplib::SSLClient(host.c_str(), port)); + cli.reset(new httplib::SSLClient(host, port)); #else throw std::runtime_error("HTTPS requested but CPPHTTPLIB_OPENSSL_SUPPORT is not defined"); #endif @@ -1071,7 +1071,6 @@ server_http_proxy::server_http_proxy( } else { req.set_header(key, value); } - SRV_INF("header %s: %s\n", key.c_str(), req.get_header_value(key).c_str()); } req.body = body; req.response_handler = response_handler;