Skip to content

Commit

Permalink
Fixed copy-paste mistake which made it impossible to set CURLOPT_SSL_…
Browse files Browse the repository at this point in the history
…VERIFYHOST to '2'.
  • Loading branch information
amfranz committed Nov 23, 2011
1 parent 2a002d5 commit 4491195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/curb_easy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1959,7 +1959,7 @@ VALUE ruby_curl_easy_setup( ruby_curl_easy *rbce ) {
curl_easy_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, rbce->proxy_tunnel);
curl_easy_setopt(curl, CURLOPT_FILETIME, rbce->fetch_file_time);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, rbce->ssl_verify_peer);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, rbce->ssl_verify_peer);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, rbce->ssl_verify_host);

if ((rbce->use_netrc != Qnil) && (rbce->use_netrc != Qfalse)) {
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, CURL_NETRC_OPTIONAL);
Expand Down

0 comments on commit 4491195

Please sign in to comment.