From 3f00891d4c3f98028ec8dfd23fd6009de2c41893 Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 06:48:18 +0000 Subject: [PATCH] 2002/06/23 21:27:22 darcs-hash:20040130064818-2ba56-6b3e7cf16a4fc64de0338fd4dcc91e8e27274893.gz --- CHANGES | 2 ++ src/org/xwt/HTTP.java | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index 4b08a3e..ee1a39b 100644 --- a/CHANGES +++ b/CHANGES @@ -202,3 +202,5 @@ 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() + diff --git a/src/org/xwt/HTTP.java b/src/org/xwt/HTTP.java index 79528ac..702e993 100644 --- a/src/org/xwt/HTTP.java +++ b/src/org/xwt/HTTP.java @@ -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) { -- 1.7.10.4