f18873ca by Adam Heath

Make http hostname, protocol, and scheme available to services.

Refs: #7638
1 parent 11f2b42c
......@@ -424,6 +424,10 @@ public class DirectControlServlet extends HttpServlet {
Debug.logInfo("USERLOGIN " + context.get("userLogin") + " AUTHTOKEN " + authToken, module);
context.put("httpHostname", request.getHeader("Host"));
context.put("httpProtocol", request.getProtocol());
context.put("httpScheme", request.getScheme());
DispatchContext dctx = dispatcher.getDispatchContext();
ModelService model = dctx.getModelService(serviceName);
......