Skip to content
Snippets Groups Projects
Commit 11cf639d authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

The return value from SimpleSAML\Utils\HTTP::fetch() can never be false.

If something fails, an exception would be thrown, instead of “false” being returned.

Also, at this point we are sure that the return value will be a string, because the call to fetch() does not set the third parameter ($getHeaders) to true.
parent ed423370
No related branches found
No related tags found
No related merge requests found
......@@ -179,10 +179,7 @@ class Artifact
// Fetch the artifact
$response = HTTP::fetch($url, $opts);
if ($response === false) {
throw new \SimpleSAML_Error_Exception('Failed to retrieve assertion from IdP.');
}
/** @var string $response */
XML::debugSAMLMessage($response, 'in');
// Find the response in the SOAP message
......
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