Browse Source

fixed proxy 'to' url to include 'from' querystring

master
Lloyd Brookes 9 years ago
parent
commit
e16652ebd8
  1. 2
      lib/local-web-server.js

2
lib/local-web-server.js

@ -180,7 +180,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')

Loading…
Cancel
Save