]> gcc.gnu.org Git - gcc.git/commitdiff
2004-10-26 Michael Koch <konqueror@gmx.de>
authorMichael Koch <konqueror@gmx.de>
Tue, 26 Oct 2004 11:48:42 +0000 (11:48 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Tue, 26 Oct 2004 11:48:42 +0000 (11:48 +0000)
* gnu/java/net/protocol/http/Connection.java
(getOutputStream): Implicitely switch to POST method.

From-SVN: r89581

libjava/ChangeLog
libjava/gnu/java/net/protocol/http/Connection.java

index 7bd455422373b2f242dcbb3f6be6cd5729c24648..21fff47ee7f203d1342becc93e70f92a54c4212c 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-26  Michael Koch  <konqueror@gmx.de>
+
+       * gnu/java/net/protocol/http/Connection.java
+       (getOutputStream): Implicitely switch to POST method.
+
 2004-10-26  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
 
        * libjava/java/lang/Class.h
index ec3e04845092721edd6355ec49caf6e5ae4aa15d..aac565c71324560265335d6f23ca2e2442686b41 100644 (file)
@@ -391,7 +391,8 @@ public final class Connection extends HttpURLConnection
   }
 
   /**
-   * 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.
    *
@@ -410,6 +411,9 @@ public final class Connection extends HttpURLConnection
     if (bufferedOutputStream == null)
       bufferedOutputStream = new ByteArrayOutputStream (256); //default is too small
     
+    // Force POST request method.
+    setRequestMethod("POST");
+
     return bufferedOutputStream;
   }
 
This page took 0.067691 seconds and 5 git commands to generate.