Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
ofbiz-directcontrolservlet
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f18873ca
authored
2016-09-09 14:27:25 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Make http hostname, protocol, and scheme available to services.
Refs: #7638
1 parent
11f2b42c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/com/brainfood/ofbiz/DirectControlServlet.java
src/com/brainfood/ofbiz/DirectControlServlet.java
View file @
f18873c
...
...
@@ -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
);
...
...
Please
register
or
sign in
to post a comment