- Fixes message body construction
This commit is contained in:
@ -58,7 +58,7 @@ class SendGrid {
|
||||
'headers' => array(
|
||||
'Authorization' => $this->auth()
|
||||
),
|
||||
'body' => urldecode(http_build_query($body))
|
||||
'body' => http_build_query($body)
|
||||
);
|
||||
}
|
||||
}
|
@ -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() {
|
||||
|
Reference in New Issue
Block a user