projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d808d82
)
2002/05/16 04:18:49
author
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 06:47:16 +0000
(06:47 +0000)
committer
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 06:47:16 +0000
(06:47 +0000)
darcs-hash:
20040130064716
-2ba56-
162da447afea8ea857b2cd69ed222eebfeb2ac94
.gz
CHANGES
patch
|
blob
|
history
src/org/xwt/HTTP.java
patch
|
blob
|
history
diff --git
a/CHANGES
b/CHANGES
index
d56467a
..
147693a
100644
(file)
--- a/
CHANGES
+++ b/
CHANGES
@@
-144,3
+144,5
@@
logic, added extra logging in the event of a
PosChange/SizeChange infinite loop.
logic, added extra logging in the event of a
PosChange/SizeChange infinite loop.
+15-May megacz HTTP.java: fixed Host: bug
+
diff --git
a/src/org/xwt/HTTP.java
b/src/org/xwt/HTTP.java
index
bf09ee1
..
52de898
100644
(file)
--- a/
src/org/xwt/HTTP.java
+++ b/
src/org/xwt/HTTP.java
@@
-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");
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);
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");
} 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");
pw.print("User-Agent: XWT\r\n");
pw.print(headers);
pw.print("\r\n");