Skip to content

Commit f4aea53

Browse files
author
Andrea Cosentino
committed
fix: fullUrl mutation
1 parent de8dcbd commit f4aea53

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/utils/plugin.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ async function handlingApiFsRequest(logger: ILogger, fullUrl: URL, request: Univ
107107
} else {
108108
pathname = handler.preHandle.transform(pathname);
109109
}
110-
fullUrl.pathname = pathname;
111-
url = fullUrl.pathname + fullUrl.search;
110+
url = pathname + fullUrl.search;
112111
}
113112

114113
const endpointNoPrefix = Utils.request.removeSlash(Utils.request.removeEndpointPrefix(url, endpointPrefix), "trailing");

0 commit comments

Comments
 (0)