forked from GNUsocial/gnu-social
NoHttpResponseException needed instead of HTTP_Request2_Exception
HTTP_Request2_Exception assumed an HTTP response status code/line
This commit is contained in:
@@ -64,7 +64,7 @@ class DiscoveryHints {
|
||||
if (!$response->isOk()) {
|
||||
return null;
|
||||
}
|
||||
} catch (HTTP_Request2_Exception $e) {
|
||||
} catch (NoHttpResponseException $e) {
|
||||
// Any HTTPClient error that might've been thrown
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user