[kaffe] CVS kaffe (dalibor): Resynced http connections implementation with GNU Classpath
Kaffe CVS
cvs-commits at kaffe.org
Sun Jul 11 18:19:37 PDT 2004
PatchSet 4935
Date: 2004/07/12 01:12:16
Author: dalibor
Branch: HEAD
Tag: (none)
Log:
Resynced http connections implementation with GNU Classpath
2004-07-11 Dalibor Topic <robilad at kaffe.org>,
* libraries/javalib/gnu/java/net/protocol/http/Connection.java:
Resynced with GNU Classpath.
2004-06-27 Mark Wielaard <mark at klomp.org>
* gnu/java/net/protocol/http/Connection.java (userAgent): New static
final field.
(sendRequest): Use new field in user-agent http agent.
Members:
ChangeLog:1.2500->1.2501
libraries/javalib/gnu/java/net/protocol/http/Connection.java:1.9->1.10
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2500 kaffe/ChangeLog:1.2501
--- kaffe/ChangeLog:1.2500 Mon Jul 12 00:02:25 2004
+++ kaffe/ChangeLog Mon Jul 12 01:12:16 2004
@@ -6,6 +6,17 @@
2004-07-11 Dalibor Topic <robilad at kaffe.org>,
+ * libraries/javalib/gnu/java/net/protocol/http/Connection.java:
+ Resynced with GNU Classpath.
+
+ 2004-06-27 Mark Wielaard <mark at klomp.org>
+
+ * gnu/java/net/protocol/http/Connection.java (userAgent): New static
+ final field.
+ (sendRequest): Use new field in user-agent http agent.
+
+2004-07-11 Dalibor Topic <robilad at kaffe.org>,
+
* config/Makefile.am:
(EXTRA_DIST) Added s390/linux/sigcontextinfo.h
Index: kaffe/libraries/javalib/gnu/java/net/protocol/http/Connection.java
diff -u kaffe/libraries/javalib/gnu/java/net/protocol/http/Connection.java:1.9 kaffe/libraries/javalib/gnu/java/net/protocol/http/Connection.java:1.10
--- kaffe/libraries/javalib/gnu/java/net/protocol/http/Connection.java:1.9 Mon Mar 22 11:24:18 2004
+++ kaffe/libraries/javalib/gnu/java/net/protocol/http/Connection.java Mon Jul 12 01:12:18 2004
@@ -80,6 +80,8 @@
private static boolean proxyInUse = false;
private static String proxyHost = null;
+ private static final String userAgent;
+
static
{
// Recognize some networking properties listed at
@@ -101,6 +103,14 @@
}
}
}
+
+ userAgent = "gnu-classpath/"
+ + System.getProperty("gnu.classpath.version")
+ + " ("
+ + System.getProperty("gnu.classpath.vm.shortname")
+ + "/"
+ + System.getProperty("java.vm.version")
+ + ")";
}
/**
@@ -215,8 +225,7 @@
setRequestProperty ("Connection", "Close");
if (getRequestProperty ("user-agent") == null)
- setRequestProperty ("user-agent", "gnu-classpath/"
- + System.getProperty ("classpath.version"));
+ setRequestProperty ("user-agent", userAgent);
if (getRequestProperty ("accept") == null)
setRequestProperty ("accept", "*/*");
More information about the kaffe
mailing list