ensure body-parser middleware is further downstream than rewrite.. fixes #30.
This commit is contained in:
@ -50,6 +50,7 @@ function proxyRequest (route, app) {
|
||||
proxy.once('proxyReq', function (proxyReq) {
|
||||
proxyReq.path = url.parse(route.new).path
|
||||
})
|
||||
|
||||
proxy.web(this.req, this.res, { target: route.new })
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user