Patch: FYI: error fix

Tom Tromey tromey@redhat.com
Fri Oct 22 21:15:00 GMT 2004


This fixes a couple of minor problems in Michael's last commit.
Oops.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* gnu/java/net/protocol/http/Connection.java (sendRequest): Fix
	typo.

Index: gnu/java/net/protocol/http/Connection.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/net/protocol/http/Connection.java,v
retrieving revision 1.21
diff -u -r1.21 Connection.java
--- gnu/java/net/protocol/http/Connection.java 22 Oct 2004 20:23:21 -0000 1.21
+++ gnu/java/net/protocol/http/Connection.java 22 Oct 2004 21:11:22 -0000
@@ -219,7 +219,7 @@
     // 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.



More information about the Java-patches mailing list