Bug 1253699 - Use transaction to determine end-to-end tls when proxying. r?mcmanus
MozReview-Commit-ID: 5Q87t5sQKBf
--- a/netwerk/protocol/http/nsHttpConnection.cpp
+++ b/netwerk/protocol/http/nsHttpConnection.cpp
@@ -402,17 +402,17 @@ nsHttpConnection::Activate(nsAHttpTransa
mIdleMonitoring = false;
// set mKeepAlive according to what will be requested
mKeepAliveMask = mKeepAlive = (caps & NS_HTTP_ALLOW_KEEPALIVE);
// need to handle HTTP CONNECT tunnels if this is the first time if
// we are tunneling through a proxy
nsresult rv = NS_OK;
- if (mConnInfo->UsingConnect() && !mCompletedProxyConnect) {
+ if (mTransaction->ConnectionInfo()->UsingConnect() && !mCompletedProxyConnect) {
rv = SetupProxyConnect();
if (NS_FAILED(rv))
goto failed_activation;
mProxyConnectInProgress = true;
}
// Clear the per activation counter
mCurrentBytesRead = 0;