Shared:Utils: bug fix TypeError: fetch failed

This commit is contained in:
Darya Umrikhina 2024-07-23 15:32:16 +04:00
parent af94190309
commit 55840596be

View File

@ -54,6 +54,7 @@ export const createRequest = (
body?: string, body?: string,
) => { ) => {
const hdrs = new Headers(headers()); const hdrs = new Headers(headers());
hdrs.delete("content-length");
const cookieStore = cookies(); const cookieStore = cookies();
const apiURL = getAPIUrl(); const apiURL = getAPIUrl();