OStatus: fix exception thrown on HTTP error during feed discovery
This commit is contained in:
parent
3f1a9443d9
commit
58192ad687
@ -129,7 +129,7 @@ class FeedDiscovery
|
||||
function initFromResponse($response)
|
||||
{
|
||||
if (!$response->isOk()) {
|
||||
throw new FeedSubBadResponseException($response->getCode());
|
||||
throw new FeedSubBadResponseException($response->getStatus());
|
||||
}
|
||||
|
||||
$sourceurl = $response->getUrl();
|
||||
|
Loading…
Reference in New Issue
Block a user