Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.

Commit 57c4cde

Browse files
committed
JayService: fix full route to support Express 4
1 parent 5abd6ed commit 57c4cde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JayService/JayService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ $data.Class.define("$data.JayService", null, null, {
7474
if (req.connection.encrypted || req.headers['X-Forwarded-Protocol'] === 'https' || req.headers['x-forwarded-protocol'] === 'https')
7575
schema += 's';
7676

77-
req.fullRoute = (req.baseRoute || (schema + '://' + req.headers.host)) + app.route;
77+
req.fullRoute = (req.baseRoute || (schema + '://' + req.headers.host)) + (app.route || req.baseUrl || req.originalUrl.replace(req.url, ''));
7878
}
7979
}
8080
},

0 commit comments

Comments
 (0)