From 9ef10a56779419b773b8abea6e76fe0b735e5388 Mon Sep 17 00:00:00 2001 From: stefdelec Date: Tue, 12 Sep 2023 01:27:19 +0200 Subject: [PATCH] Update README.md (#493) * Update README.md --------- Co-authored-by: monkpow --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 0e4c9c7f..e01dcfed 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,11 @@ function selectProxyHost() { app.use('/', proxy(selectProxyHost)); ``` + +Notie: Host is only the host name. Any params after in url will be ignored. For ``http://google.com/myPath`, ``myPath`` will be ignored because the host name is ``google.com``. +See ``proxyReqPathResolver`` for more detailed path information. + + ### Middleware mixing If you use 'https://www.npmjs.com/package/body-parser' you should declare it AFTER the proxy configuration, otherwise original 'POST' body could be modified and not proxied correctly.