Skip to content
Snippets Groups Projects
Unverified Commit 31da9aad authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Pass options as an array instead of resource

parent 0d6aba35
No related branches found
No related tags found
No related merge requests found
......@@ -154,9 +154,9 @@ class sspmod_oauth_Consumer
'header' => 'Content-Type: application/x-www-form-urlencoded',
),
);
$context = stream_context_create($opts);
try {
$response = \SimpleSAML\Utils\HTTP::fetch($url, $context);
$response = \SimpleSAML\Utils\HTTP::fetch($url, $opts);
} catch (\SimpleSAML_Error_Exception $e) {
throw new SimpleSAML_Error_Exception('Failed to push definition file to ' . $url);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment