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

View File

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