Skip to content

Commit

Permalink
activation: Set CURLOPT_FOLLOWLOCATION to handle 302 redirects from A…
Browse files Browse the repository at this point in the history
…pples activation server
  • Loading branch information
nikias committed May 17, 2018
1 parent 0c59a88 commit 7010311
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/activation.c
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,7 @@ IDEVICE_ACTIVATION_API idevice_activation_error_t idevice_activation_send_reques
curl_easy_setopt(handle, CURLOPT_HEADERFUNCTION, &idevice_activation_header_callback);
curl_easy_setopt(handle, CURLOPT_URL, request->url);
curl_easy_setopt(handle, CURLOPT_FORBID_REUSE, 1);
curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1L);

// enable communication debugging
if (debug_level > 0) {
Expand Down

0 comments on commit 7010311

Please sign in to comment.