Connection.java (sendRequest): Fix typo.
authorTom Tromey <tromey@redhat.com>
Fri, 22 Oct 2004 21:15:38 +0000 (21:15 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 22 Oct 2004 21:15:38 +0000 (21:15 +0000)
* gnu/java/net/protocol/http/Connection.java (sendRequest): Fix
typo.

From-SVN: r89477

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

index c8ba285..d08e238 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-22  Tom Tromey  <tromey@redhat.com>
+
+       * gnu/java/net/protocol/http/Connection.java (sendRequest): Fix
+       typo.
+
 2004-10-22  Michael Koch  <konqueror@gmx.de>
 
        PR libjava/14009
index d5ac5fb..ec3e048 100644 (file)
@@ -219,7 +219,7 @@ public final class Connection extends HttpURLConnection
     // Send request including any request properties that were set.
     String requestFile = url.getFile();
     outputWriter.print(getRequestMethod() + " "
-                      + requestFile.length() != 0 ? requestFile : "/";
+                      + (requestFile.length() != 0 ? requestFile : "/")
                        + " HTTP/1.1\r\n");
 
     // Set additional HTTP headers.