drewzboto / grunt-connect-proxy

Grunt Connect support for proxying API calls during development
MIT License
424 stars 122 forks source link

Rewrite rule: duplicate debug message or duplicate request? #118

Open StephaniesHusband opened 8 years ago

StephaniesHusband commented 8 years ago

I have a proxy rewrite rule to redirect a particular path on my "connect" server to another path but i'm seeing both of them in the log when i run with "debug: true".

Here is the rewrite rule: server2: { proxies: [ { context: "/templates", host: "localhost", port: 2443, https: false, changeOrigin: false, rewrite: { "/templates/components/libraries/1.2": "/jmvc" } } ] }

And here's what I'm seeing in the debug output:

[D] server GET /jmvc/dateinput/1.3.0/jquery.dateinput.css 304 - - 0.859 ms [D] server GET /templates/components/libraries/1.2/dateinput/1.3.0/jquery.dateinput.css 304 - - 6.354 ms

What gives? Is it actually pulling BOTH? Or just a bad debug message??