From f84284ef9d7ab1cc9ae706076930d1a01c16d004 Mon Sep 17 00:00:00 2001 From: Igor Balos Date: Thu, 2 Nov 2023 13:52:19 +0100 Subject: [PATCH] updated default headers for the http client --- CHANGELOG.md | 4 ++++ package-lock.json | 4 ++-- package.json | 2 +- src/client/BaseClient.ts | 1 + 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b017e0a..9db567dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 3.1.2 + +* add content type header to the http client default headers list + ## 3.1.1 * small naming update for data removal endpoints diff --git a/package-lock.json b/package-lock.json index de04106a..905778a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "postmark", - "version": "3.1.1", + "version": "3.1.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "postmark", - "version": "3.1.1", + "version": "3.1.2", "license": "MIT", "dependencies": { "axios": "^0.25.0" diff --git a/package.json b/package.json index 2b08a0a3..b0c33266 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "sending", "transactional" ], - "version": "3.1.1", + "version": "3.1.2", "author": "Igor Balos", "contributors": [ "Igor Balos", diff --git a/src/client/BaseClient.ts b/src/client/BaseClient.ts index 84d8509d..d98b490d 100644 --- a/src/client/BaseClient.ts +++ b/src/client/BaseClient.ts @@ -110,6 +110,7 @@ export default abstract class BaseClient { return { [this.authHeader]: this.token, "Accept": "application/json", + "Content-Type": "application/json", "User-Agent": `Postmark.JS - ${this.clientVersion}`, }; }