Skip to content

Commit

Permalink
updated default headers for the http client
Browse files Browse the repository at this point in the history
  • Loading branch information
ibalosh committed Nov 2, 2023
1 parent fbb3ea0 commit f84284e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"sending",
"transactional"
],
"version": "3.1.1",
"version": "3.1.2",
"author": "Igor Balos",
"contributors": [
"Igor Balos",
Expand Down
1 change: 1 addition & 0 deletions src/client/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
};
}
Expand Down

0 comments on commit f84284e

Please sign in to comment.