1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-19 11:11:10 +01:00

Fix SendGrid adapter for HTTPSFuture changes.

This commit is contained in:
epriestley 2011-08-18 09:55:35 -07:00
parent 6dc193d3d9
commit 2bb4cf149e

View file

@ -142,12 +142,9 @@ class PhabricatorMailImplementationSendGridAdapter
$future = new HTTPSFuture(
'https://sendgrid.com/api/mail.send.json',
$params);
$future->setMethod('POST');
list($code, $body) = $future->resolve();
if ($code !== 200) {
throw new Exception("REST API call failed with HTTP code {$code}.");
}
list($body) = $future->resolvex();
$response = json_decode($body, true);
if (!is_array($response)) {