2002/06/23 21:27:22
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:48:18 +0000 (06:48 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:48:18 +0000 (06:48 +0000)
darcs-hash:20040130064818-2ba56-6b3e7cf16a4fc64de0338fd4dcc91e8e27274893.gz

CHANGES
src/org/xwt/HTTP.java

diff --git a/CHANGES b/CHANGES
index 4b08a3e..ee1a39b 100644 (file)
--- a/CHANGES
+++ b/CHANGES
 23-Jun megacz Box.java: JPEG hack, fastpath rendering bugfix,
               fixedaspect, improved >500 Pos/SizeChange loop breakout
 
+23-Jun megacz HTTP.java: removed System.out.println()
+
index 79528ac..702e993 100644 (file)
@@ -64,7 +64,7 @@ public class HTTP {
         if (port == -1) port = ssl ? 443 : 80;
         host = this.url.getHost();
         if (Log.on) Log.log(this, "creating HTTP object for connection to " + host + ":" + port);
-        addHeader("Host", host);                  // host header is always sent verbatim
+        addHeader("Host", host);                                           // host header is always sent verbatim
         if (!skipResolveCheck) host = resolveAndCheckIfFirewalled(host);   // might have to use the strict IP if behind a proxy
 
         ProxyInfo pi = Platform.detectProxy();
@@ -74,7 +74,6 @@ public class HTTP {
         if (sock == null && pi != null && pi.socksProxyHost != null) sock = attemptSocksProxy(pi.socksProxyHost, pi.socksProxyPort);
         if (sock == null) sock = attemptDirect();
         if (sock == null) throw new HTTPException("all socket creation attempts have failed");
-        sock.setTcpNoDelay(true);
     }
 
 
@@ -287,7 +286,6 @@ public class HTTP {
         } else {
             PrintWriter pw = new PrintWriter(new OutputStreamWriter(sock.getOutputStream()));
             pw.print("GET " + path + " HTTP/1.0\r\n");
-            System.out.print("GET " + path + " HTTP/1.0\r\n");
             pw.print("User-Agent: XWT\r\n");
             pw.print(headers);
             pw.print("\r\n");
@@ -297,7 +295,7 @@ public class HTTP {
         in = new BufferedInputStream(sock.getInputStream());
 
         // we can't use a BufferedReader directly on the input stream,
-        // since it will buffer beyond the end of the headers
+        // since it will buffer past the end of the headers
         byte[] buf = new byte[4096];
         int buflen = 0;
         while(true) {