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
07e6a2b1
authored
2014-04-16 20:02:43 -0500
by
Ean Schuessler
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fixes to work around Node NAJAX
1 parent
dd2c9c75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/com/brainfood/ofbiz/DirectControlServlet.java
src/com/brainfood/ofbiz/DirectControlServlet.java
View file @
07e6a2b
...
...
@@ -112,13 +112,14 @@ public class DirectControlServlet extends HttpServlet {
Map
<
String
,
Object
>
context
=
new
HashMap
<
String
,
Object
>();
String
authToken
=
null
;
Debug
.
logInfo
(
"PARAMETERS: "
+
request
.
getParameterMap
(),
module
);
// Handle if this is a form post
String
contentType
=
request
.
getContentType
();
if
(
contentType
!=
null
&&
contentType
.
indexOf
(
"
application/
x-www-form-urlencoded"
)
!=
-
1
)
{
if
(
contentType
!=
null
&&
contentType
.
indexOf
(
"x-www-form-urlencoded"
)
!=
-
1
)
{
method
=
request
.
getParameter
(
"_method"
);
Debug
.
logInfo
(
"Method: "
+
method
,
module
);
if
(
method
==
null
)
method
=
"POST"
;
// If this is a backbone PUT/DELETE emulated call then handle it
Debug
.
logInfo
(
"Method: "
+
method
,
module
);
if
(
"PUT"
.
equals
(
method
)
||
"DELETE"
.
equals
(
method
)
||
"CALL"
.
equals
(
method
)
||
"POST"
.
equals
(
method
))
{
// if (!"CALL".equals(method)) context.put("_method", method);
JSON
json
=
new
JSON
(
new
StringReader
(
request
.
getParameter
(
"model"
)));
...
...
Please
register
or
sign in
to post a comment