NoHttpResponseException needed instead of HTTP_Request2_Exception

HTTP_Request2_Exception assumed an HTTP response status code/line
This commit is contained in:
Mikael Nordfeldth
2016-01-13 14:08:48 +01:00
parent e75472f460
commit 3ed632decf
5 changed files with 48 additions and 5 deletions

View File

@@ -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;
}