Skip to content

Commit

Permalink
Merge pull request #2 from johnymonster/master
Browse files Browse the repository at this point in the history
Update script proxy to support paths.
  • Loading branch information
tgetgood committed Mar 14, 2013
2 parents 8c5a5fe + 226b469 commit 0e97d2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scriptInjectorProxy.js
Expand Up @@ -44,7 +44,8 @@ httpProxy.createServer(function(req, res, proxy) {
destination = url.parse(dest, true);

req.headers['host'] = destination.host;
req.headers['url'] = destination.href;
req.url = destination.path;
// req.headers['url'] = destination.href;

// console.log(dest);
// console.log("-------------------------------------------");
Expand Down

0 comments on commit 0e97d2f

Please sign in to comment.