From 428eddf9fb7aa941ea956376b5773ad2bd46b497 Mon Sep 17 00:00:00 2001 From: Patrick Radtke <patrick@cirrusidentity.com> Date: Fri, 21 Sep 2018 11:07:42 -0700 Subject: [PATCH] Fix for #933 `stream_context_create` functionality is handled with HTTP::fetch() --- modules/oauth/lib/Consumer.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/oauth/lib/Consumer.php b/modules/oauth/lib/Consumer.php index 43642f49f..634cf63ed 100644 --- a/modules/oauth/lib/Consumer.php +++ b/modules/oauth/lib/Consumer.php @@ -172,9 +172,6 @@ class Consumer $data_req = \OAuthRequest::from_consumer_and_token($this->consumer, $accessToken, "GET", $url, null); $data_req->sign_request($this->signer, $this->consumer, $accessToken); - if (is_array($opts)) { - $opts = stream_context_create($opts); - } $data = \SimpleSAML\Utils\HTTP::fetch($data_req->to_url(), $opts); return json_decode($data, true); -- GitLab