From 97ded01095246a3a693bc85bef4bca5d1af177dd Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 23 Jul 2024 16:14:19 +0300 Subject: [PATCH] Fix auth-scheme name for proxy authentication. --- tdnet/td/net/HttpProxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdnet/td/net/HttpProxy.cpp b/tdnet/td/net/HttpProxy.cpp index 9d8250ef3..b15dc0a47 100644 --- a/tdnet/td/net/HttpProxy.cpp +++ b/tdnet/td/net/HttpProxy.cpp @@ -25,7 +25,7 @@ void HttpProxy::send_connect() { string proxy_authorization; if (!username_.empty() || !password_.empty()) { auto userinfo = PSTRING() << username_ << ':' << password_; - proxy_authorization = PSTRING() << "Proxy-Authorization: basic " << base64_encode(userinfo) << "\r\n"; + proxy_authorization = PSTRING() << "Proxy-Authorization: Basic " << base64_encode(userinfo) << "\r\n"; VLOG(proxy) << "Use credentials to connect to proxy: " << proxy_authorization; } fd_.output_buffer().append(PSLICE() << "CONNECT " << host << " HTTP/1.1\r\n"