HTTP proxy correctly handle subpaths.
This commit is contained in:
parent
e4486f4c17
commit
1f98d7e5ec
@ -150,9 +150,9 @@ const setUpProxies = (connect, opts) => {
|
||||
}
|
||||
|
||||
// HTTP request proxy.
|
||||
forEach(opts, (config, url) => {
|
||||
forEach(opts, (target, url) => {
|
||||
connect.use(url, (req, res) => {
|
||||
proxyRequest(config, req, res)
|
||||
proxyRequest(target + req.url, req, res)
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user