[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath: small fix for HTTP connections
Kaffe CVS
cvs-commits at kaffe.org
Sun Nov 7 11:59:23 PST 2004
PatchSet 5417
Date: 2004/11/07 19:55:04
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Resynced with GNU Classpath: small fix for HTTP connections
2004-11-07 Dalibor Topic <robilad at kaffe.org>
* libraries/javalib/gnu/java/net/protocol/http/Connection.java:
Resynced with GNU Classpath.
2004-11-06 Tom Tromey <tromey at redhat.com>
* gnu/java/net/protocol/http/Connection.java (sendRequest): Fix
typo.
2004-11-06 Michael Koch <konqueror at gmx.de>
PR libjava/14009
* gnu/java/net/protocol/http/Connection.java
(sendRequest): Handle case when url.getFile() returns an empty string.
Members:
ChangeLog:1.2966->1.2967
libraries/javalib/gnu/java/net/protocol/http/Connection.java:1.14->1.15
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2966 kaffe/ChangeLog:1.2967
--- kaffe/ChangeLog:1.2966 Sun Nov 7 19:22:14 2004
+++ kaffe/ChangeLog Sun Nov 7 19:55:04 2004
@@ -1,5 +1,21 @@
2004-11-07 Dalibor Topic <robilad at kaffe.org>
+ * libraries/javalib/gnu/java/net/protocol/http/Connection.java:
+ Resynced with GNU Classpath.
+
+ 2004-11-06 Tom Tromey <tromey at redhat.com>
+
+ * gnu/java/net/protocol/http/Connection.java (sendRequest): Fix
+ typo.
+
+ 2004-11-06 Michael Koch <konqueror at gmx.de>
+
+ PR libjava/14009
+ * gnu/java/net/protocol/http/Connection.java
+ (sendRequest): Handle case when url.getFile() returns an empty string.
+
+2004-11-07 Dalibor Topic <robilad at kaffe.org>
+
* libraries/javalib/java/net/Socket.java:
Resynced with GNU Classpath.
Index: kaffe/libraries/javalib/gnu/java/net/protocol/http/Connection.java
diff -u kaffe/libraries/javalib/gnu/java/net/protocol/http/Connection.java:1.14 kaffe/libraries/javalib/gnu/java/net/protocol/http/Connection.java:1.15
--- kaffe/libraries/javalib/gnu/java/net/protocol/http/Connection.java:1.14 Wed Oct 27 01:43:22 2004
+++ kaffe/libraries/javalib/gnu/java/net/protocol/http/Connection.java Sun Nov 7 19:55:07 2004
@@ -217,8 +217,10 @@
new PrintWriter(new OutputStreamWriter(outputStream, "8859_1"));
// Send request including any request properties that were set.
- outputWriter.print (getRequestMethod() + " " + url.getFile()
- + " HTTP/1.1\r\n");
+ String requestFile = url.getFile();
+ outputWriter.print(getRequestMethod() + " "
+ + (requestFile.length() != 0 ? requestFile : "/")
+ + " HTTP/1.1\r\n");
// Set additional HTTP headers.
if (getRequestProperty ("Host") == null)
More information about the kaffe
mailing list