From c2479ccb7a73db4b8c3071ed4cc92e27d30dabf2 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Tue, 13 Nov 2001 08:34:24 +0000
Subject: [PATCH] my proxytunnel fix accidentally ruined the normal https
 connects

---
 lib/http.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/lib/http.c b/lib/http.c
index 6d1330c25d..bb0c26e72e 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -407,13 +407,13 @@ CURLcode Curl_http_connect(struct connectdata *conn)
                                          conn->hostname, conn->remote_port);
     if(CURLE_OK != result)
       return result;
-    
-    if(conn->protocol & PROT_HTTPS) {
-      /* now, perform the SSL initialization for this socket */
-      result = Curl_SSLConnect(conn);
-      if(result)
-        return result;
-    }
+  }    
+
+  if(conn->protocol & PROT_HTTPS) {
+    /* now, perform the SSL initialization for this socket */
+    result = Curl_SSLConnect(conn);
+    if(result)
+      return result;
   }
 
   if(conn->bits.user_passwd && !data->state.this_is_a_follow) {
-- 
GitLab