Skip to content

Commit

Permalink
+ enable follow to support redirections with curl library
Browse files Browse the repository at this point in the history
  • Loading branch information
djdron committed Dec 6, 2017
1 parent 118d73c commit f2ba909
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platform/web/curl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ std::string GetURL(const char* path)
curl_easy_setopt(curl, CURLOPT_URL, path);
curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
std::string file_data;
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &file_data);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, _write_callback);
Expand Down

0 comments on commit f2ba909

Please sign in to comment.