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
94c3a2d7
authored
2016-07-05 21:02:56 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add feature to see the raw http status numerical code.
1 parent
95b259c8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
src/com/brainfood/ofbiz/DirectControlServlet.java
src/com/brainfood/ofbiz/DirectControlServlet.java
View file @
94c3a2d
...
...
@@ -418,10 +418,13 @@ public class DirectControlServlet extends HttpServlet {
Map
<
String
,
Object
>
result
=
dispatcher
.
runSync
(
serviceName
,
context
);
result
.
remove
(
"responseMessage"
);
Integer
httpStatusCode
=
(
Integer
)
result
.
remove
(
"httpStatusCode"
);
int
statusCode
=
httpStatusCode
==
null
?
200
:
httpStatusCode
.
intValue
();
if
(
result
.
get
(
"errorMessage"
)
!=
null
)
{
response
.
setStatus
(
400
)
;
statusCode
=
400
;
}
response
.
setStatus
(
statusCode
);
// Set to expire far in the past.
response
.
setHeader
(
"Expires"
,
"Sat, 6 May 1995 12:00:00 GMT"
);
...
...
Please
register
or
sign in
to post a comment