diff options
| author | levlam <levlam@telegram.org> | 2024-07-23 16:14:19 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2024-07-23 16:14:19 +0300 |
| commit | 97ded01095246a3a693bc85bef4bca5d1af177dd (patch) | |
| tree | e031251c1d8477faa4eb79aeda62f23a22d74f3f /tdnet | |
| parent | 2c81189790e5c21f82159a8afc04bb81f9135a5e (diff) | |
Fix auth-scheme name for proxy authentication.
Diffstat (limited to 'tdnet')
| -rw-r--r-- | tdnet/td/net/HttpProxy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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" |
