aboutsummaryrefslogtreecommitdiff
path: root/lib/compile-handler.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compile-handler.js')
-rw-r--r--lib/compile-handler.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compile-handler.js b/lib/compile-handler.js
index 70f8e712d..774eb5b55 100644
--- a/lib/compile-handler.js
+++ b/lib/compile-handler.js
@@ -121,6 +121,7 @@ function CompileHandler(gccProps, compilerProps) {
}
var remote = compiler.getRemote();
if (remote) {
+ req.url = req.originalUrl; // Undo any routing that was done to get here (i.e. /api/* path has been removed)
proxy.web(req, res, {target: remote}, function (e) {
logger.error("Proxy error: ", e);
next(e);