axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/transport/http HTTPSender.java
Date Wed, 17 Jul 2002 18:13:06 GMT
dims        2002/07/17 11:13:06

  Modified:    java/src/org/apache/axis/transport/http HTTPSender.java
  Log:
  Use startsWith() instead of equals() as contentType can have additional info.
  
  Revision  Changes    Path
  1.78      +1 -1      xml-axis/java/src/org/apache/axis/transport/http/HTTPSender.java
  
  Index: HTTPSender.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/HTTPSender.java,v
  retrieving revision 1.77
  retrieving revision 1.78
  diff -u -r1.77 -r1.78
  --- HTTPSender.java	10 Jul 2002 20:19:17 -0000	1.77
  +++ HTTPSender.java	17 Jul 2002 18:13:05 -0000	1.78
  @@ -521,7 +521,7 @@
                   : contentType.trim();
           if ((returnCode > 199) && (returnCode < 300)) {
               // SOAP return is OK - so fall through
  -        } else if ((contentType != null) && !contentType.equals("text/html")
  +        } else if ((contentType != null) && !contentType.startsWith("text/html")
                   && ((returnCode > 499) && (returnCode < 600))) {
               // SOAP Fault should be in here - so fall through
           } else {
  
  
  

Mime
View raw message