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 63d6f91 commit ffeb6a2Copy full SHA for ffeb6a2
packages/open-next/src/http/util.ts
@@ -1,4 +1,5 @@
1
import type http from "node:http";
2
+import logger from "../logger";
3
4
export const parseHeaders = (
5
headers?: http.OutgoingHttpHeader[] | http.OutgoingHttpHeaders,
@@ -25,6 +26,9 @@ export const parseHeaders = (
25
26
if (value[0] === value[1]) {
27
result[keyLower] = value[0];
28
} else {
29
+ logger.warn(
30
+ "Multiple different values for Location header found. Using the last one",
31
+ );
32
result[keyLower] = value[value.length - 1];
33
}
34
continue;
0 commit comments