axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kei...@apache.org
Subject svn commit: r596950 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java
Date Wed, 21 Nov 2007 06:20:48 GMT
Author: keithc
Date: Tue Nov 20 22:20:47 2007
New Revision: 596950

URL: http://svn.apache.org/viewvc?rev=596950&view=rev
Log:
Minor fix to contentNegotiation


Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java?rev=596950&r1=596949&r2=596950&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java
Tue Nov 20 22:20:47 2007
@@ -656,6 +656,10 @@
             if (transportHeaders != null) {
                 String acceptHeader = (String) transportHeaders.get(HTTPConstants.HEADER_ACCEPT);
                 if (acceptHeader != null) {
+                    int index = acceptHeader.indexOf(";");
+                    if (index > 0) {
+                        acceptHeader = acceptHeader.substring(0, index);
+                    }
                     String[] strings = acceptHeader.split(",");
                     for (int i = 0; i < strings.length; i++) {
                         if (configuration.getMessageFormatter(strings[i].trim()) != null)
{



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message