From f59d34c0010248f85a08a63292513ab7766098f6 Mon Sep 17 00:00:00 2001 From: moss9001 Date: Thu, 21 Oct 2021 17:47:46 +0300 Subject: [PATCH] Update https_call.cpp --- .../plugins/peerplays_sidechain/common/https_call.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libraries/plugins/peerplays_sidechain/common/https_call.cpp b/libraries/plugins/peerplays_sidechain/common/https_call.cpp index 4e2b922a..796296ac 100644 --- a/libraries/plugins/peerplays_sidechain/common/https_call.cpp +++ b/libraries/plugins/peerplays_sidechain/common/https_call.cpp @@ -99,7 +99,14 @@ private: // host - stream << "Host: " << m_Call.host() << ":" << m_Endpoint.port() << CrLf; + stream << "Host: " << m_Call.host(); + + if (m_Call.port() != 0) { + //ASSERT(m_Endpoint.port() == m_Call.port()); + stream << ":" << m_Call.port(); + } + + stream << CrLf; // content