Skip to content

Commit

Permalink
Merge pull request #19 from jiwandono/master
Browse files Browse the repository at this point in the history
Follow HTTP redirects (max. 5 redirects).
  • Loading branch information
fengmk2 committed Jun 26, 2014
2 parents b451333 + 57ebdd0 commit 2ef3512
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/request.cc
Expand Up @@ -26,6 +26,8 @@ Request::Request ()
curl_easy_setopt (curl_, CURLOPT_WRITEDATA, &write_buffer_);
curl_easy_setopt (curl_, CURLOPT_HEADERDATA, &header_buffer_);
curl_easy_setopt (curl_, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt (curl_, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt (curl_, CURLOPT_MAXREDIRS, 5);
}

Request::~Request () {
Expand Down

0 comments on commit 2ef3512

Please sign in to comment.