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:
@@ -80,7 +80,7 @@ if (have_option('--verify')) {
|
||||
|
||||
print $response->getStatus() . "\n\n";
|
||||
print $response->getBody() . "\n\n";
|
||||
} catch (HTTP_Request2_Exception $e) {
|
||||
} catch (NoHttpResponseException $e) {
|
||||
print 'Failed POST to URL '.var_export($url, true).': '.$e->getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user