Shared:Utils: bug fix TypeError: fetch failed
This commit is contained in:
parent
af94190309
commit
55840596be
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user