Make http hostname, protocol, and scheme available to services.
Refs: #7638
Showing
1 changed file
with
4 additions
and
0 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment