--- PutMethod.java	Tue May 08 12:59:14 2001
+++ PutMethod.java	Tue May 08 13:07:55 2001
@@ -193,13 +193,13 @@
     
     
     /**
-     * Is the query body submitted through an InputStream of with a String.
-     * If an InputStream is available, it's used.
+     * Is the query body submitted through an InputStream.
+     * For this method this is always true.
      *
-     * @return boolean True if the content is avalable in an InputStream
+     * @return boolean True
      */
     public boolean isStreamedQuery() {
-        return ((file != null) || (url != null));
+        return true;
     }
     
     
@@ -217,18 +217,12 @@
     
     /**
      * Generate the query body.
+     * Not used, always stream the content to the server
      *
      * @return String query
      */
     public String generateQuery() {
-        if (query != null){
-            return query;
-        }
-        if (data == null) {
-            return "";
-        } else {
-            return new String(data);
-        }
+        return "";
     }
     
     
@@ -240,10 +234,16 @@
         throws IOException {
         
         InputStream inputStream = null;
-        if (file != null) {
+
+        if (data != null) {
+            out.write(data,0,data.length);
+            return;
+        } else if (file != null) {
             inputStream = new FileInputStream(file);
         } else if (url != null) {
             inputStream = url.openConnection().getInputStream();
+        } else {
+            return;
         }
         
         byte[] buffer = new byte[4096];
