From 631db09301347d1a97d20fe2d7041589882f6a0e Mon Sep 17 00:00:00 2001 From: Stefan Mansson Date: Fri, 21 Feb 2020 13:36:36 +0100 Subject: [PATCH] fix: set content type for requests --- src/Request.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Request.ts b/src/Request.ts index 3cd9f4d..1a221ad 100644 --- a/src/Request.ts +++ b/src/Request.ts @@ -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) {