|
|
| version 1.80, 2026/07/19 19:06:14 | version 1.82, 2026/07/19 20:25:15 |
|---|---|
| Line 18 | Line 18 |
| #include "pa_http.h" | #include "pa_http.h" |
| #include "ltdl.h" | #include "ltdl.h" |
| #ifdef _MSC_VER | |
| #include "winsock2.h" // AF_INET & co | |
| #endif | |
| volatile const char * IDENT_CURL_C="$Id$"; | volatile const char * IDENT_CURL_C="$Id$"; |
| class MCurl: public Methoded { | class MCurl: public Methoded { |
| Line 592 static void curl_setopt(HashStringValue: | Line 596 static void curl_setopt(HashStringValue: |
| // hash of $.[host:port][address[,address]] entries to populate DNS cache with, bypassing the resolver | // hash of $.[host:port][address[,address]] entries to populate DNS cache with, bypassing the resolver |
| HashStringValue *value_hash=v.as_hash("failed to set option 'resolve': value"); | HashStringValue *value_hash=v.as_hash("failed to set option 'resolve': value"); |
| res=f_curl_easy_setopt(curl(), opt->id, options().resolve=curl_resolve(value_hash)); | res=f_curl_easy_setopt(curl(), opt->id, options().resolve=value_hash ? curl_resolve(value_hash) : 0); |
| break; | break; |
| } | } |
| case CurlOption::CURL_FILE:{ | case CurlOption::CURL_FILE:{ |