Skip to content

Commit d409da2

Browse files
committed
refactor comment
1 parent 7eed3c0 commit d409da2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export const parseHeaders = (
1212
if (value === undefined) {
1313
continue;
1414
}
15-
// Next can sometimes return an Array for the Location header
15+
// Next can return an Array for the Location header
16+
// We dont want to merge that into a comma-separated string
1617
// See: https://github.com/opennextjs/opennextjs-cloudflare/issues/875#issuecomment-3258248276
1718
if (key.toLowerCase() === "location" && Array.isArray(value)) {
1819
result[key.toLowerCase()] = value[0];

0 commit comments

Comments
 (0)