diff options
author | Nikias Bassen | 2018-05-17 16:56:17 +0200 |
---|---|---|
committer | Nikias Bassen | 2018-05-17 16:56:17 +0200 |
commit | 7010311d13951fe28f1dbe86a0d8ccc6e14e8ef6 (patch) | |
tree | 4d15914b76e630acf8a69853b145a30405f0138d | |
parent | 0c59a888d5a9da6fa23a6a2e74875e33c0dfff2f (diff) | |
download | libideviceactivation-7010311d13951fe28f1dbe86a0d8ccc6e14e8ef6.tar.gz libideviceactivation-7010311d13951fe28f1dbe86a0d8ccc6e14e8ef6.tar.bz2 |
activation: Set CURLOPT_FOLLOWLOCATION to handle 302 redirects from Apples activation server
-rw-r--r-- | src/activation.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/activation.c b/src/activation.c index 6105071..f96e8b7 100644 --- a/src/activation.c +++ b/src/activation.c @@ -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) { |