Fix simple copy-paste error.
authorDavid Barksdale <amatus.amongus@gmail.com>
Tue, 6 May 2014 02:03:56 +0000 (02:03 +0000)
committerDavid Barksdale <amatus.amongus@gmail.com>
Tue, 6 May 2014 02:03:56 +0000 (02:03 +0000)
src/transport/plugin_transport_http_client.c

index b7fbd3e8793ffab5b5e9829c346592f121f8c434..15150b3dcc57e0d6d3e1593157ee99d0c5a8ef01 100644 (file)
@@ -1395,11 +1395,11 @@ client_connect_put (struct Session *s)
       curl_easy_setopt (s->client_put, CURLOPT_SSL_VERIFYHOST, 0);
     }
   }
-  curl_easy_setopt (s->client_get, CURLOPT_PROTOCOLS, CURLPROTO_HTTPS);
-  curl_easy_setopt (s->client_get, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTPS);
+  curl_easy_setopt (s->client_put, CURLOPT_PROTOCOLS, CURLPROTO_HTTPS);
+  curl_easy_setopt (s->client_put, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTPS);
 #else
-  curl_easy_setopt (s->client_get, CURLOPT_PROTOCOLS, CURLPROTO_HTTP);
-  curl_easy_setopt (s->client_get, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP);
+  curl_easy_setopt (s->client_put, CURLOPT_PROTOCOLS, CURLPROTO_HTTP);
+  curl_easy_setopt (s->client_put, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP);
 #endif
   if (s->plugin->proxy_hostname != NULL)
   {