[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath: Use POST method for HTTP output streams

Kaffe CVS cvs-commits at kaffe.org
Tue Oct 26 18:48:05 PDT 2004


PatchSet 5368 
Date: 2004/10/27 01:43:19
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU Classpath: Use POST method for HTTP output streams

2004-10-26  Dalibor Topic  <robilad at kaffe.org>

        * libraries/javalib/gnu/java/net/protocol/http/Connection.java:
        Resynced with GNU Classpath.

        2004-10-26  Michael Koch  <konqueror at gmx.de>

        * gnu/java/net/protocol/http/Connection.java
        (getOutputStream): Implicitely switch to POST method.

Members: 
	ChangeLog:1.2920->1.2921 
	libraries/javalib/gnu/java/net/protocol/http/Connection.java:1.13->1.14 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2920 kaffe/ChangeLog:1.2921
--- kaffe/ChangeLog:1.2920	Mon Oct 25 19:54:25 2004
+++ kaffe/ChangeLog	Wed Oct 27 01:43:19 2004
@@ -1,3 +1,13 @@
+2004-10-26  Dalibor Topic  <robilad at kaffe.org>
+
+	* libraries/javalib/gnu/java/net/protocol/http/Connection.java:
+        Resynced with GNU Classpath.
+
+	2004-10-26  Michael Koch  <konqueror at gmx.de>
+
+        * gnu/java/net/protocol/http/Connection.java
+        (getOutputStream): Implicitely switch to POST method.
+
 2004-10-25  Dalibor Topic  <robilad at kaffe.org>
 
 	* libraries/javalib/gnu/java/text/BaseBreakIterator.java,
Index: kaffe/libraries/javalib/gnu/java/net/protocol/http/Connection.java
diff -u kaffe/libraries/javalib/gnu/java/net/protocol/http/Connection.java:1.13 kaffe/libraries/javalib/gnu/java/net/protocol/http/Connection.java:1.14
--- kaffe/libraries/javalib/gnu/java/net/protocol/http/Connection.java:1.13	Fri Oct 15 10:41:42 2004
+++ kaffe/libraries/javalib/gnu/java/net/protocol/http/Connection.java	Wed Oct 27 01:43:22 2004
@@ -389,7 +389,8 @@
   }
 
   /**
-   * Returns on OutputStream for writing to this connection.
+   * Returns on OutputStream for writing to this connection. This method
+   * implicitely changes request method to <code>POST</code>.
    *
    * @return An OutputStream for this connection.
    *
@@ -408,6 +409,9 @@
     if (bufferedOutputStream == null)
       bufferedOutputStream = new ByteArrayOutputStream (256); //default is too small
     
+    // Force POST request method.
+    setRequestMethod("POST");
+
     return bufferedOutputStream;
   }
 




More information about the kaffe mailing list