Skip to content
Snippets Groups Projects
Commit f651059a authored by Olav Morken's avatar Olav Morken
Browse files

aggregator2: HTTP proxy support.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2663 44740490-163a-0410-bde0-09ae8108e29a
parent e145c0fd
No related branches found
No related tags found
No related merge requests found
......@@ -123,9 +123,8 @@ class sspmod_aggregator2_EntitySource {
$context['ssl']['CN_match'] = parse_url($this->url, PHP_URL_HOST);
}
$context = stream_context_create($context);
$data = file_get_contents($this->url, 0, $context);
$data = SimpleSAML_Utilities::fetch($this->url, $context);
if ($data === FALSE || $data === NULL) {
SimpleSAML_Logger::error($this->logLoc . 'Unable to load metadata from ' .
var_export($this->url, 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