OSDN Git Service

2003-10-13 Taras Judge <taras.judge@shaw.ca>
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Oct 2003 22:06:06 +0000 (22:06 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Oct 2003 22:06:06 +0000 (22:06 +0000)
PR libgcj/12592
* gnu/java/net/protocol/http/Connection.java (connect): Use \r\n,
not just \n.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72443 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 1d45198..6ec5495 100644 (file)
@@ -1,3 +1,9 @@
+2003-10-13  Taras Judge  <taras.judge@shaw.ca>
+
+       PR libgcj/12592
+       * gnu/java/net/protocol/http/Connection.java (connect): Use \r\n,
+       not just \n.
+
 2003-10-13  Michael Koch  <konqueror@gmx.de>
 
        * java/io/File.java: Reformated.
index 990287d..85c7910 100644 (file)
@@ -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;