Skip to content

Commit 0e17539

Browse files
committed
refactor comments
1 parent b6aee20 commit 0e17539

File tree

1 file changed

+2
-2
lines changed
  • packages/open-next/src/core/routing

1 file changed

+2
-2
lines changed

packages/open-next/src/core/routing/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,11 +442,11 @@ export async function invalidateCDNOnRequest(
442442
* Normalizes the Location header to either be a relative path or a full URL.
443443
* If the Location header is relative to the host, it will return a relative path.
444444
* If it is an absolute URL, it will return the full URL.
445-
* Both cases will ensure that the URL is properly encoded according to RFC
445+
* Both cases will ensure that the Location value is properly encoded according to RFC
446446
*
447447
* @param location The Location header value
448448
* @param url The original request URL
449-
* @returns A normalized Location header value
449+
* @returns An encoded absolute or relative Location header value
450450
*/
451451
export function normalizeLocationHeader(location: string, url: string): string {
452452
const locationUrl = new URL(location);

0 commit comments

Comments
 (0)