Skip to content

Commit aed2461

Browse files
HazATkamilogorek
authored andcommitted
fix: Add application/json header for node transport (#1423)
1 parent c4f11bb commit aed2461

File tree

1 file changed

+1
-0
lines changed
  • packages/node/src/transports

1 file changed

+1
-0
lines changed

packages/node/src/transports/base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export abstract class BaseTransport implements Transport {
5454
/** Returns a build request option object used by request */
5555
protected getRequestOptions(): http.RequestOptions {
5656
const headers = {
57+
'Content-Type': 'application/json',
5758
'X-Sentry-Auth': this.getAuthHeader(),
5859
...this.options.headers,
5960
};

0 commit comments

Comments
 (0)