We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37fda4a commit d7e09daCopy full SHA for d7e09da
src/utils/proxy.ts
@@ -137,7 +137,10 @@ export async function proxy(
137
/**
138
* Get the request headers object without headers known to cause issues when proxying.
139
*/
140
-export function getProxyRequestHeaders(event: H3Event, opts?: { host?: boolean }) {
+export function getProxyRequestHeaders(
141
+ event: H3Event,
142
+ opts?: { host?: boolean },
143
+) {
144
const headers = new EmptyObject();
145
for (const [name, value] of event.request.headers.entries()) {
146
if (!ignoredHeaders.has(name) || (name === "host" && opts?.host)) {
0 commit comments