This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: fix libjava http be more compliant
- From: Taras <taras dot judge at shaw dot ca>
- To: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Mon, 13 Oct 2003 10:27:54 -0700
- Subject: Patch: fix libjava http be more compliant
Hello,
This is a patch to fix bug libgcj/12592
Taras
Index: Connection.java
===================================================================
RCS file: /cvsroot/gcc/gcc/libjava/gnu/gcj/protocol/http/Attic/Connection.java,v
retrieving revision 1.8
diff -u -r1.8 Connection.java
--- Connection.java 3 Jan 2003 18:05:00 -0000 1.8
+++ Connection.java 13 Oct 2003 03:01:46 -0000
@@ -130,13 +130,13 @@
PrintWriter out = new PrintWriter(sock.getOutputStream());
// Send request including any request properties that were set.
- out.print(getRequestMethod() + " " + url.getFile() + " HTTP/1.0\n");
- out.print("Host: " + url.getHost() + ":" + port + "\n");
+ out.print(getRequestMethod() + " " + url.getFile() + " HTTP/1.0\r\n");
+ out.print("Host: " + url.getHost() + ":" + port + "\r\n");
Enumeration reqKeys = requestProperties.keys();
Enumeration reqVals = requestProperties.elements();
while (reqKeys.hasMoreElements())
- out.print(reqKeys.nextElement() + ": " + reqVals.nextElement() + "\n");
- out.print("\n");
+ out.print(reqKeys.nextElement() + ": " + reqVals.nextElement() + "\r\n");
+ out.print("\r\n");
out.flush();
getHttpHeaders();
connected = true;