diff options
author | 2024-09-05 15:29:40 +0100 | |
---|---|---|
committer | 2024-09-05 15:29:40 +0100 | |
commit | 2493a7335ff3ed868dd2e33c3e3b5be84032eb17 (patch) | |
tree | 8a8e1c3068cc7549be573a2d8a9f2895acf1baa7 | |
parent | Store current refresh task in authorization slice (diff) |
Don't override headers in POST utils
-rw-r--r-- | thallium-frontend/src/api/client.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thallium-frontend/src/api/client.ts b/thallium-frontend/src/api/client.ts index bbba0d5..1e23110 100644 --- a/thallium-frontend/src/api/client.ts +++ b/thallium-frontend/src/api/client.ts @@ -49,11 +49,11 @@ export const get = async (url: string, options: RequestInit = {}): Promise<APIRe export const post = async (url: string, data: APIRequestBody, options: RequestInit = {}): Promise<APIResponseBody> => { return request(url, { - ...options, method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify(data), + ...options, }); }; |