This is an automated email from the ASF dual-hosted git repository.
guodong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git
The following commit(s) were added to refs/heads/master by this push:
new 2517b09c fix auto https check
new 2326f74d Merge pull request #1754 from renzhong/fix_https_check
2517b09c is described below
commit 2517b09cecec6f31a45f6f054584d0be64b33385
Author: devin.zhang <[email protected]>
AuthorDate: Sun May 1 11:54:15 2022 +0800
fix auto https check
---
src/brpc/channel.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/brpc/channel.cpp b/src/brpc/channel.cpp
index c55533a1..443a05db 100755
--- a/src/brpc/channel.cpp
+++ b/src/brpc/channel.cpp
@@ -295,7 +295,7 @@ int Channel::InitSingle(const butil::EndPoint&
server_addr_and_port,
if (raw_port != -1) {
_service_name.append(":").append(std::to_string(raw_port));
}
- if (_options.protocol == brpc::PROTOCOL_HTTP && scheme == "https://") {
+ if (_options.protocol == brpc::PROTOCOL_HTTP && scheme == "https") {
if (_options.mutable_ssl_options()->sni_name.empty()) {
_options.mutable_ssl_options()->sni_name = _service_name;
}
@@ -336,7 +336,7 @@ int Channel::Init(const char* ns_url,
if (raw_port != -1) {
_service_name.append(":").append(std::to_string(raw_port));
}
- if (_options.protocol == brpc::PROTOCOL_HTTP && scheme == "https://") {
+ if (_options.protocol == brpc::PROTOCOL_HTTP && scheme == "https") {
if (_options.mutable_ssl_options()->sni_name.empty()) {
_options.mutable_ssl_options()->sni_name = _service_name;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]