diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 1d45198c1e70..6ec549577bb4 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2003-10-13 Taras Judge + + PR libgcj/12592 + * gnu/java/net/protocol/http/Connection.java (connect): Use \r\n, + not just \n. + 2003-10-13 Michael Koch * java/io/File.java: Reformated. diff --git a/libjava/gnu/java/net/protocol/http/Connection.java b/libjava/gnu/java/net/protocol/http/Connection.java index 990287db2281..85c7910a42cc 100644 --- a/libjava/gnu/java/net/protocol/http/Connection.java +++ b/libjava/gnu/java/net/protocol/http/Connection.java @@ -138,13 +138,13 @@ class Connection extends HttpURLConnection 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;