- Fixes message body construction
This commit is contained in:
@ -58,7 +58,7 @@ class SendGrid {
|
|||||||
'headers' => array(
|
'headers' => array(
|
||||||
'Authorization' => $this->auth()
|
'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['method'])->equals('POST');
|
||||||
expect($request['headers']['Authorization'])
|
expect($request['headers']['Authorization'])
|
||||||
->equals('Bearer ' . $this->settings['api_key']);
|
->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() {
|
function itCanDoBasicAuth() {
|
||||||
|
Reference in New Issue
Block a user