refactor(httpClientAdapter): comment out unused header assignment code

This commit is contained in:
2026-01-18 20:59:25 +07:00
parent ae61ece0b0
commit 9f521c76f4

View File

@@ -10,9 +10,9 @@ export const customFetch = async (url: string, options: RequestInit) => {
if (!c) { if (!c) {
throw new Error("Hono context not found in SSR"); throw new Error("Hono context not found in SSR");
} }
Object.entries(c.req.header()).forEach(([k, v]) => { // Object.entries(c.req.header()).forEach(([k, v]) => {
Object.assign(options.headers!, { [k]: v }); // Object.assign(options.headers!, { [k]: v });
}); // });
return await c.get("fetch")(url, options); return await c.get("fetch")(url, options);
} }
return fetch(url, options); return fetch(url, options);