ODE-602: URLEncoding for POST

Project: http://git-wip-us.apache.org/repos/asf/ode/repo
Commit: http://git-wip-us.apache.org/repos/asf/ode/commit/39bbbf45
Tree: http://git-wip-us.apache.org/repos/asf/ode/tree/39bbbf45
Diff: http://git-wip-us.apache.org/repos/asf/ode/diff/39bbbf45

Branch: refs/heads/master
Commit: 39bbbf4590a828eb4a35466fbc74d94c14e78574
Parents: 960c8df
Author: sathwik <[email protected]>
Authored: Tue Nov 28 16:53:20 2017 +0530
Committer: sathwik <[email protected]>
Committed: Tue Nov 28 16:53:20 2017 +0530

----------------------------------------------------------------------
 .../java/org/apache/ode/axis2/httpbinding/HttpMethodConverter.java  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ode/blob/39bbbf45/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpMethodConverter.java
----------------------------------------------------------------------
diff --git 
a/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpMethodConverter.java 
b/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpMethodConverter.java
index 0e89ed2..5316952 100644
--- 
a/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpMethodConverter.java
+++ 
b/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpMethodConverter.java
@@ -192,6 +192,7 @@ public class HttpMethodConverter {
             final String contentCharset = 
method.getParams().getContentCharset();
             if (log.isDebugEnabled()) log.debug("Content-Type [" + contentType 
+ "] Charset [" + contentCharset + "]");
             if (useUrlEncoded) {
+                encodedParams = new 
URLEncodedTransformer().transform(partValues);
                 requestEntity = new StringRequestEntity(encodedParams, 
PostMethod.FORM_URL_ENCODED_CONTENT_TYPE, contentCharset);
             } else {
                 // get the part to be put in the body

Reply via email to