Skip to content

Commit

Permalink
Fix auth-scheme name for proxy authentication.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Jul 23, 2024
1 parent 2c81189 commit 97ded01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tdnet/td/net/HttpProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 97ded01

Please sign in to comment.