2002/05/16 04:18:49
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:47:16 +0000 (06:47 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:47:16 +0000 (06:47 +0000)
darcs-hash:20040130064716-2ba56-162da447afea8ea857b2cd69ed222eebfeb2ac94.gz

CHANGES
src/org/xwt/HTTP.java

diff --git a/CHANGES b/CHANGES
index d56467a..147693a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
               logic, added extra logging in the event of a
               PosChange/SizeChange infinite loop.
 
+15-May megacz HTTP.java: fixed Host: bug
+
index bf09ee1..52de898 100644 (file)
@@ -271,7 +271,6 @@ public class HTTP {
         out = sock.getOutputStream();
         PrintWriter pw = new PrintWriter(new OutputStreamWriter(out));
         pw.print("POST " + path + " HTTP/1.0\r\n");
-        pw.print("Host: " + host + "\r\n");
         pw.print("User-Agent: XWT\r\n");
         pw.print("Content-length: " + contentLength + "\r\n");
         pw.print(headers);
@@ -288,7 +287,7 @@ public class HTTP {
         } else {
             PrintWriter pw = new PrintWriter(new OutputStreamWriter(sock.getOutputStream()));
             pw.print("GET " + path + " HTTP/1.0\r\n");
-            pw.print("Host: " + host + "\r\n");
+            System.out.println("GET " + path + " HTTP/1.0\r\n");
             pw.print("User-Agent: XWT\r\n");
             pw.print(headers);
             pw.print("\r\n");