Skip to content

Commit

Permalink
Update README.md (#493)
Browse files Browse the repository at this point in the history
* Update README.md

---------

Co-authored-by: monkpow <[email protected]>
  • Loading branch information
stefdelec and monkpow authored Sep 11, 2023
1 parent fe5c2bd commit 9ef10a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9ef10a5

Please sign in to comment.