Author: thilina
Date: Thu Feb 22 03:31:20 2007
New Revision: 510466

URL: http://svn.apache.org/viewvc?view=rev&rev=510466
Log:
More flushing to make sure the "--" at the end of last mime boundary

Modified:
    
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MIMEOutputUtils.java

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MIMEOutputUtils.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MIMEOutputUtils.java?view=diff&rev=510466&r1=510465&r2=510466
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MIMEOutputUtils.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MIMEOutputUtils.java
 Thu Feb 22 03:31:20 2007
@@ -177,6 +177,7 @@
                                                dataHandler), 
format.getMimeBoundary());
                        }
                        finishWritingMime(outputStream);
+                       outputStream.flush();
                } catch (IOException e) {
                        throw new OMException("Error while writing to the 
OutputStream.", e);
                } catch (MessagingException e) {
@@ -252,6 +253,7 @@
                        writeMimeBoundary(outputStream, 
format.getMimeBoundary());
                        }
                        finishWritingMime(outputStream);
+                       outputStream.flush();
                } catch (IOException e) {
                        throw new OMException("Error while writing to the 
OutputStream.", e);
                } catch (MessagingException e) {



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to