- Fixes message body construction

This commit is contained in:
Vlad
2016-01-28 22:28:42 -05:00
parent b5094f568c
commit 2f42f643ab
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ class SendGrid {
'headers' => array(
'Authorization' => $this->auth()
),
'body' => urldecode(http_build_query($body))
'body' => http_build_query($body)
);
}
}

View File

@ -54,7 +54,7 @@ class SendGridCest {
expect($request['method'])->equals('POST');
expect($request['headers']['Authorization'])
->equals('Bearer ' . $this->settings['api_key']);
expect($request['body'])->equals(urldecode(http_build_query($body)));
expect($request['body'])->equals(http_build_query($body));
}
function itCanDoBasicAuth() {