Skip to content

Commit

Permalink
fix: set content type for requests
Browse files Browse the repository at this point in the history
  • Loading branch information
animify committed Feb 21, 2020
1 parent 67e1bb8 commit 631db09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export default class Request {
const requestOptions: RequestInit = {
method: opts.method,
body: JSON.stringify(opts.body),
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
};

if (Request.authToken) {
Expand Down

0 comments on commit 631db09

Please sign in to comment.