Skip to content
Snippets Groups Projects
Commit 428eddf9 authored by Patrick Radtke's avatar Patrick Radtke
Browse files

Fix for #933

`stream_context_create` functionality is handled with HTTP::fetch()
parent 8a400e17
No related branches found
No related tags found
No related merge requests found
...@@ -172,9 +172,6 @@ class Consumer ...@@ -172,9 +172,6 @@ class Consumer
$data_req = \OAuthRequest::from_consumer_and_token($this->consumer, $accessToken, "GET", $url, null); $data_req = \OAuthRequest::from_consumer_and_token($this->consumer, $accessToken, "GET", $url, null);
$data_req->sign_request($this->signer, $this->consumer, $accessToken); $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); $data = \SimpleSAML\Utils\HTTP::fetch($data_req->to_url(), $opts);
return json_decode($data, true); return json_decode($data, true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment