Merge branch 'master' into next

This commit is contained in:
Lloyd Brookes
2015-11-19 14:14:12 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -195,7 +195,7 @@ function proxyRequest (route, app) {
const next = arguments[arguments.length - 1]
const keys = []
route.re = pathToRegexp(route.from, keys)
route.new = this.path.replace(route.re, route.to)
route.new = this.url.replace(route.re, route.to)
keys.forEach((key, index) => {
const re = RegExp(`:${key.name}`, 'g')