Closed
Description
Expected behavior
apiProxy1 should match:
/something/myapp/api?param=value => should match to http://www.example.org/otherapi?param=value
apiProxy2 should not be necessary.
Actual behavior
apiProxy1:
/something/myapp/api => matches to http://www.example.org/otherapi
/something/myapp/api?param=value => does not match
apiProxy2:
/something/myapp/api => matches to http://www.example.org/otherapi
/something/myapp/api?param=value => matches to http://www.example.org/otherapi?param=value
Setup
- http-proxy-middleware: 0.16.0
- server: connect 2.30.0
proxy middleware configuration
var apiProxy1 = proxy('/**/myapp/api', {target:'http://www.example.org/otherapi', changeOrigin:true});
var apiProxy2 = proxy('/**/myapp/api*', {target:'http://www.example.org/otherapi', changeOrigin:true});