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 { ...@@ -424,6 +424,10 @@ public class DirectControlServlet extends HttpServlet {
424 424
425 Debug.logInfo("USERLOGIN " + context.get("userLogin") + " AUTHTOKEN " + authToken, module); 425 Debug.logInfo("USERLOGIN " + context.get("userLogin") + " AUTHTOKEN " + authToken, module);
426 426
427 context.put("httpHostname", request.getHeader("Host"));
428 context.put("httpProtocol", request.getProtocol());
429 context.put("httpScheme", request.getScheme());
430
427 DispatchContext dctx = dispatcher.getDispatchContext(); 431 DispatchContext dctx = dispatcher.getDispatchContext();
428 ModelService model = dctx.getModelService(serviceName); 432 ModelService model = dctx.getModelService(serviceName);
429 433
......