From 67b318920b0873ff54dc8808dce295a023c45c7b Mon Sep 17 00:00:00 2001 From: Chris Taggart Date: Wed, 1 Nov 2023 19:44:30 -0400 Subject: [PATCH] Set encoding type to json for Postmark POSTs --- src/Service/PostmarkService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Service/PostmarkService.php b/src/Service/PostmarkService.php index dae3a6f..2be8552 100644 --- a/src/Service/PostmarkService.php +++ b/src/Service/PostmarkService.php @@ -188,6 +188,7 @@ public function send(Message $message): array $response = $this->prepareHttpClient('/email') ->setMethod(HttpRequest::METHOD_POST) + ->setEncType('application/json') ->setRawBody(json_encode($this->filterParameters($parameters))) ->send();