1
0
Fork 0
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:
Steffen Vogel 2017-04-07 14:51:39 +00:00
parent 1056ad3b4e
commit 31c1a50449

View file

@ -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);