Skip to content

Commit da6b12d

Browse files
committed
MA-1084 #time 20m functionally tested and fixed minor issues.
1 parent aeb7344 commit da6b12d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SparkPost/Transmission.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public static function send($transmissionConfig) {
148148

149149
//send the request
150150
try {
151-
$response = $request->post(self::getBaseUrl($hostConfig), array('authorization' => $hostConfig['key']), $model, array("verify"=>$hostConfig['strictSSL']))->send();
151+
$response = $request->post(self::getBaseUrl($hostConfig), array('authorization' => $hostConfig['key']), json_encode($model), array("verify"=>$hostConfig['strictSSL']))->send();
152152
return $response->json();
153153
} catch (RequestException $exception) {
154154
$response = $exception->getResponse();

0 commit comments

Comments
 (0)