From 7010311d13951fe28f1dbe86a0d8ccc6e14e8ef6 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 17 May 2018 16:56:17 +0200 Subject: activation: Set CURLOPT_FOLLOWLOCATION to handle 302 redirects from Apples activation server --- src/activation.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.1-32-gdbae