Skip to content

Commit

Permalink
Remove some outdated libcurl option usage in curl wrapper header (ali…
Browse files Browse the repository at this point in the history
  • Loading branch information
Coldwings committed Apr 3, 2024
1 parent 8ac6741 commit e697961
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/curl.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ class cURL {
return;
}
setopt(CURLOPT_ERRORBUFFER, m_errmsg);
setopt(CURLOPT_DNS_USE_GLOBAL_CACHE, 0L);
setopt(CURLOPT_NOSIGNAL, 1L);
setopt(CURLOPT_TCP_NODELAY, 1L);
m_errmsg[0] = '\0';
Expand Down Expand Up @@ -413,7 +412,6 @@ class cURL {
set_read_stream(rstream);
set_write_stream(wstream);
setopt(CURLOPT_UPLOAD, 1L);
setopt(CURLOPT_PUT, 1L);
setopt(CURLOPT_URL, url);
setopt(CURLOPT_HTTPHEADER, headers.list);
#if LIBCURL_VERSION_MAJOR > 7 || LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR >= 37
Expand Down

0 comments on commit e697961

Please sign in to comment.