mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
support older libcurl versions (< 7.42.0) (fixes #86)
This commit is contained in:
parent
1056ad3b4e
commit
31c1a50449
1 changed files with 2 additions and 0 deletions
|
@ -79,7 +79,9 @@ AFILE * afopen(const char *uri, const char *mode)
|
|||
goto out1;
|
||||
|
||||
/* Setup libcurl handle */
|
||||
#if LIBCURL_VERSION_NUM >= 0x072d00
|
||||
curl_easy_setopt(af->curl, CURLOPT_DEFAULT_PROTOCOL, "file");
|
||||
#endif
|
||||
curl_easy_setopt(af->curl, CURLOPT_FOLLOWLOCATION, 1L);
|
||||
curl_easy_setopt(af->curl, CURLOPT_UPLOAD, 0L);
|
||||
curl_easy_setopt(af->curl, CURLOPT_USERAGENT, USER_AGENT);
|
||||
|
|
Loading…
Add table
Reference in a new issue