cvs commit: xml-soap/java/src/org/apache/soap/transport TransportMessage.java

[email protected]
Newsgroups gmane.text.xml.soap.devel
Message-ID <[email protected]>
snichol     2003/04/28 09:09:46

  Modified:    java/src/org/apache/soap/transport TransportMessage.java
  Log:
  Do not strip < and > off Content-ID in TransportMessage#save.  Thanks to
  [email protected] (mark sheppard) for reading RFC2387 closely.
  
  Revision  Changes    Path
  1.24      +2 -2      xml-soap/java/src/org/apache/soap/transport/TransportMessage.java
  
  Index: TransportMessage.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/transport/TransportMessage.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- TransportMessage.java	20 Nov 2002 21:34:42 -0000	1.23
  +++ TransportMessage.java	28 Apr 2003 16:09:46 -0000	1.24
  @@ -457,8 +457,8 @@
                           contentType = valuebuf.toString();
                           if (ctx.getCount() > 1) {
                               String rootCID = ctx.getRootPart().getContentID();
  -                            // Strip < and > off Content-ID.
  -                            rootCID = rootCID.substring(1, rootCID.length() - 1);
  +                            // Do not strip < and > off Content-ID.
  +                            //rootCID = rootCID.substring(1, rootCID.length() - 1);
                               contentType += "; type=\""
                                   + Constants.HEADERVAL_CONTENT_TYPE
                                   + "\"; start=\"" + rootCID + '"';
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.