diff options
Diffstat (limited to 'lib/private/user')
-rw-r--r-- | lib/private/user/http.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/user/http.php b/lib/private/user/http.php index 2bb8b4c864a..617e8adb3f2 100644 --- a/lib/private/user/http.php +++ b/lib/private/user/http.php @@ -72,6 +72,8 @@ class OC_User_HTTP extends OC_User_Backend { curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERPWD, $user.':'.$password); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); + curl_setopt($ch, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); curl_exec($ch); |