From 00b16667d3281e9ed8cf51a4acbbeab6f44e53f9 Mon Sep 17 00:00:00 2001 From: Adam Nicholson Date: Wed, 26 Nov 2014 13:13:06 +0000 Subject: [PATCH] Updated MandrillHandler to set CURLOPT_RETURNTRANSFER to true to ensure the API response isn't output directly --- src/Monolog/Handler/MandrillHandler.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Monolog/Handler/MandrillHandler.php b/src/Monolog/Handler/MandrillHandler.php index 6525a01d..60a2901e 100644 --- a/src/Monolog/Handler/MandrillHandler.php +++ b/src/Monolog/Handler/MandrillHandler.php @@ -56,6 +56,7 @@ class MandrillHandler extends MailHandler curl_setopt($ch, CURLOPT_URL, 'https://mandrillapp.com/api/1.0/messages/send-raw.json'); curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array( 'key' => $this->apiKey, 'raw_message' => (string) $message,