From 07ea03027cc89713b6232a181870e36649d63628 Mon Sep 17 00:00:00 2001 From: fjcalzado Date: Sun, 19 Nov 2017 21:08:44 +0100 Subject: [PATCH] #171 Fix type error --- src/rest-api/helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rest-api/helpers.ts b/src/rest-api/helpers.ts index 62dacf2..f798834 100644 --- a/src/rest-api/helpers.ts +++ b/src/rest-api/helpers.ts @@ -1,10 +1,10 @@ const methodBase = { mode: 'cors' as RequestMode, credentials: 'include' as RequestCredentials, - headers: { + headers: new Headers({ 'Accept': 'application/json', 'Content-Type': 'application/json', - }, + }), }; export const formatURL = (url) => (`${process.env.BASE_API_URL}${url}`);