From 2f42f643ab7236d2ca2894c7ddb2488040e4e9b9 Mon Sep 17 00:00:00 2001 From: Vlad Date: Thu, 28 Jan 2016 22:28:42 -0500 Subject: [PATCH] - Fixes message body construction --- lib/Mailer/Methods/SendGrid.php | 2 +- tests/unit/Mailer/Methods/SendGridCest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Mailer/Methods/SendGrid.php b/lib/Mailer/Methods/SendGrid.php index 5c45c8bb62..bedc80e58a 100644 --- a/lib/Mailer/Methods/SendGrid.php +++ b/lib/Mailer/Methods/SendGrid.php @@ -58,7 +58,7 @@ class SendGrid { 'headers' => array( 'Authorization' => $this->auth() ), - 'body' => urldecode(http_build_query($body)) + 'body' => http_build_query($body) ); } } \ No newline at end of file diff --git a/tests/unit/Mailer/Methods/SendGridCest.php b/tests/unit/Mailer/Methods/SendGridCest.php index 3b2880276f..8be56c88cc 100644 --- a/tests/unit/Mailer/Methods/SendGridCest.php +++ b/tests/unit/Mailer/Methods/SendGridCest.php @@ -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() {