From d9044f756d856d36d506e20948ef29dc155ffe9d Mon Sep 17 00:00:00 2001 From: Nico Gallinal Date: Fri, 26 Dec 2025 18:59:33 -0300 Subject: [PATCH] fix: applyPathRewrite logs old req.url instead of rewritten path --- src/http-proxy-middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http-proxy-middleware.ts b/src/http-proxy-middleware.ts index 6fe301c0..e95aa302 100644 --- a/src/http-proxy-middleware.ts +++ b/src/http-proxy-middleware.ts @@ -178,7 +178,7 @@ export class HttpProxyMiddleware { const path = await pathRewriter(req.url, req); if (typeof path === 'string') { - debug('pathRewrite new path: %s', req.url); + debug('pathRewrite new path: %s', path); req.url = path; } else { debug('pathRewrite: no rewritten path found: %s', req.url);