Skip to content

Commit

Permalink
Proxy full URL for API requests preserving query string
Browse files Browse the repository at this point in the history
  • Loading branch information
dpowell committed Nov 30, 2013
1 parent 19bafeb commit cd57a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/express-server.js
Expand Up @@ -106,7 +106,7 @@ module.exports = function(grunt) {

function passThrough(target) {
return function(req, res) {
req.pipe(request(target+req.path)).pipe(res);
req.pipe(request(target+req.url)).pipe(res);
};
}
};

0 comments on commit cd57a41

Please sign in to comment.