From 425a6ccfc0feaa68cfd3ceda9b385f7890eb5fc9 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Tue, 28 Mar 2023 19:52:03 +0300 Subject: [PATCH] fix --- src/utils/axios.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/axios.ts b/src/utils/axios.ts index 1216957..12f7632 100644 --- a/src/utils/axios.ts +++ b/src/utils/axios.ts @@ -6,10 +6,10 @@ import { fetch } from "../state"; function getHeaders(): AxiosHeaders { const { token } = fetch(); const headers = new AxiosHeaders({ - ["Content-Type"]: "application/json" + "Content-Type": "application/json" }); if (token) { - headers["Authorization"] = `Tuitio ${token}`; + headers.Authorization = `Tuitio ${token}`; } return headers; }