Skip to content

Commit ffeb6a2

Browse files
committed
add log
1 parent 63d6f91 commit ffeb6a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/open-next/src/http/util.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type http from "node:http";
2+
import logger from "../logger";
23

34
export const parseHeaders = (
45
headers?: http.OutgoingHttpHeader[] | http.OutgoingHttpHeaders,
@@ -25,6 +26,9 @@ export const parseHeaders = (
2526
if (value[0] === value[1]) {
2627
result[keyLower] = value[0];
2728
} else {
29+
logger.warn(
30+
"Multiple different values for Location header found. Using the last one",
31+
);
2832
result[keyLower] = value[value.length - 1];
2933
}
3034
continue;

0 commit comments

Comments
 (0)