diff --git a/badges/lib/backpacklib.php b/badges/lib/backpacklib.php index 384a2d26c243c..a32e67f143026 100644 --- a/badges/lib/backpacklib.php +++ b/badges/lib/backpacklib.php @@ -66,6 +66,7 @@ public function curl_request($action, $collection = null) { 'FORBID_REUSE' => true, 'HEADER' => 0, 'CONNECTTIMEOUT' => 3, + // Follow redirects with the same type of request when sent 301, or 302 redirects. 'CURLOPT_POSTREDIR' => 3 );