diff options
author | Michael Koch <konqueror@gmx.de> | 2004-10-26 11:48:42 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2004-10-26 11:48:42 +0000 |
commit | 8db8c940f180e23567dab2fb34a27e272d27fe4c (patch) | |
tree | 5bb6d0577ca661a0d0adaa09837441c855a56589 /libjava/gnu | |
parent | 782fa603f90e9aebe57c1c252b99892cee8eb7e4 (diff) | |
download | gcc-8db8c940f180e23567dab2fb34a27e272d27fe4c.zip gcc-8db8c940f180e23567dab2fb34a27e272d27fe4c.tar.gz gcc-8db8c940f180e23567dab2fb34a27e272d27fe4c.tar.bz2 |
2004-10-26 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/http/Connection.java
(getOutputStream): Implicitely switch to POST method.
From-SVN: r89581
Diffstat (limited to 'libjava/gnu')
-rw-r--r-- | libjava/gnu/java/net/protocol/http/Connection.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libjava/gnu/java/net/protocol/http/Connection.java b/libjava/gnu/java/net/protocol/http/Connection.java index ec3e048..aac565c 100644 --- a/libjava/gnu/java/net/protocol/http/Connection.java +++ b/libjava/gnu/java/net/protocol/http/Connection.java @@ -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; } |