Skip to content

Commit 85d2717

Browse files
committed
Fix for proxy rewrite not working anymore.
Apparently this whole config option was removed in PR #359.
1 parent 97ef7b5 commit 85d2717

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ function Server(compiler, options) {
180180
}
181181

182182
app.use(function(req, res, next) {
183+
if(typeof proxyConfig.rewrite === 'function') proxyConfig.rewrite(req, proxyConfig);
183184
var bypassUrl = bypass && proxyConfig.bypass(req, res, proxyConfig) || false;
184185

185186
if(bypassUrl) {

0 commit comments

Comments
 (0)