struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [6/7] struts git commit: remove old second contentType parameter
Date Sun, 22 May 2016 06:31:03 GMT
remove old second contentType parameter


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

Branch: refs/heads/master
Commit: d16aa65098b5c830d26eb32c00006f793f485036
Parents: 8b8135a
Author: victorsosa <victor.sosa@peopleware.do>
Authored: Fri May 6 18:04:04 2016 -0400
Committer: victorsosa <victor.sosa@peopleware.do>
Committed: Fri May 6 18:04:04 2016 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/struts2/json/JSONInterceptor.java | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/d16aa650/plugins/json/src/main/java/org/apache/struts2/json/JSONInterceptor.java
----------------------------------------------------------------------
diff --git a/plugins/json/src/main/java/org/apache/struts2/json/JSONInterceptor.java b/plugins/json/src/main/java/org/apache/struts2/json/JSONInterceptor.java
index 5beb8df..ba775d3 100644
--- a/plugins/json/src/main/java/org/apache/struts2/json/JSONInterceptor.java
+++ b/plugins/json/src/main/java/org/apache/struts2/json/JSONInterceptor.java
@@ -82,12 +82,6 @@ public class JSONInterceptor extends AbstractInterceptor {
             accept = request.getHeader("accept");
         }
         
-        if (accept != null) {
-            int iSemicolonIdx;
-            if ((iSemicolonIdx = accept.indexOf(";")) != -1)
-                accept = accept.substring(0, iSemicolonIdx);
-        }
-
         Object rootObject = null;
         final ValueStack stack = invocation.getStack();
         if (this.root != null) {


Mime
View raw message