Return req.originalUrl from gulpfile proxy

This commit is contained in:
Ken-Håvard Lieng 2017-04-21 03:31:35 +02:00
parent 2525b06c28
commit dce68ce813
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ gulp.task('dev', ['css', 'fonts', 'fonts:woff', 'config', 'compress:dev', 'binda
app.use('*', proxy('localhost:1337', {
forwardPath: function(req, res) {
return url.parse(req.url).path;
return req.originalUrl;
}
}));