File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/open-next/src/core/routing Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 */
451451export function normalizeLocationHeader ( location : string , url : string ) : string {
452452 const locationUrl = new URL ( location ) ;
You can’t perform that action at this time.
0 commit comments