aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-09-05 15:29:40 +0100
committerGravatar Joe Banks <[email protected]>2024-09-05 15:29:40 +0100
commit2493a7335ff3ed868dd2e33c3e3b5be84032eb17 (patch)
tree8a8e1c3068cc7549be573a2d8a9f2895acf1baa7
parentStore current refresh task in authorization slice (diff)
Don't override headers in POST utils
-rw-r--r--thallium-frontend/src/api/client.ts2
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,
});
};