equal
deleted
inserted
replaced
114 curl_easy_setopt(impl->curl, CURLOPT_ERRORBUFFER, impl->curlErrorBuffer); |
114 curl_easy_setopt(impl->curl, CURLOPT_ERRORBUFFER, impl->curlErrorBuffer); |
115 |
115 |
116 // enable HTTP and HTTPS only |
116 // enable HTTP and HTTPS only |
117 curl_easy_setopt(impl->curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); |
117 curl_easy_setopt(impl->curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); |
118 |
118 |
|
119 // disable protocol guesswork |
|
120 curl_easy_setopt(impl->curl, CURLOPT_DEFAULT_PROTOCOL, "no-default-protocol-specify-http-or-https-explicitly-in-url"); |
|
121 |
119 return new HTTPClient(impl); |
122 return new HTTPClient(impl); |
120 } |
123 } |
121 |
124 |
122 HTTPClient::~HTTPClient() { |
125 HTTPClient::~HTTPClient() { |
123 curl_easy_cleanup(impl->curl); |
126 curl_easy_cleanup(impl->curl); |