tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject [1/2] tomee git commit: application/x-www-form-urlencoded can have encoding and few metadata as well
Date Fri, 02 Jan 2015 12:54:22 GMT
Repository: tomee
Updated Branches:
  refs/heads/develop 71b4e09f6 -> a4fd70746


application/x-www-form-urlencoded can have encoding and few metadata as well


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/530fe3c9
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/530fe3c9
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/530fe3c9

Branch: refs/heads/develop
Commit: 530fe3c9dd47dfba4d5dfe92deb472ebfcb489ad
Parents: 71b4e09
Author: Romain Manni-Bucau <rmannibucau@apache.org>
Authored: Fri Jan 2 13:08:09 2015 +0100
Committer: Romain Manni-Bucau <rmannibucau@apache.org>
Committed: Fri Jan 2 13:08:09 2015 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/openejb/server/httpd/HttpRequestImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/530fe3c9/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/HttpRequestImpl.java
----------------------------------------------------------------------
diff --git a/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/HttpRequestImpl.java
b/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/HttpRequestImpl.java
index b57c174..8fa7ceb 100644
--- a/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/HttpRequestImpl.java
+++ b/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/HttpRequestImpl.java
@@ -685,7 +685,7 @@ public class HttpRequestImpl implements HttpRequest {
         contentType = getHeader(HttpRequest.HEADER_CONTENT_TYPE);
 
         final boolean hasBody = hasBody();
-        if (hasBody && FORM_URL_ENCODED.equals(contentType)) {
+        if (hasBody && contentType != null && contentType.startsWith(FORM_URL_ENCODED))
{
             String rawParams;
 
             try {


Mime
View raw message