@@ -44,7 +44,9 @@ namespace ETP_NS
4444 {
4545 m.insert (boost::beast::http::field::sec_websocket_protocol, " etp12.energistics.org" );
4646 m.insert (boost::beast::http::field::authorization, etpServerAuthorization);
47- m.insert (boost::beast::http::field::proxy_authorization, proxyAuthorization);
47+ if (!proxyHost.empty () && !isTls ()) {
48+ m.insert (boost::beast::http::field::proxy_authorization, proxyAuthorization);
49+ }
4850 m.insert (" etp-encoding" , " binary" );
4951 for (const auto & mapEntry : additionalHandshakeHeaderFields_) {
5052 m.insert (mapEntry.first , mapEntry.second );
@@ -60,7 +62,9 @@ namespace ETP_NS
6062 {
6163 m.insert (boost::beast::http::field::sec_websocket_protocol, " etp12.energistics.org" );
6264 m.insert (boost::beast::http::field::authorization, etpServerAuthorization);
63- m.insert (boost::beast::http::field::proxy_authorization, proxyAuthorization);
65+ if (!proxyHost.empty () && !isTls ()) {
66+ m.insert (boost::beast::http::field::proxy_authorization, proxyAuthorization);
67+ }
6468 m.insert (" etp-encoding" , " binary" );
6569 for (const auto & mapEntry : additionalHandshakeHeaderFields_) {
6670 m.insert (mapEntry.first , mapEntry.second );
0 commit comments