+2004-06-27 Mark Wielaard <mark@klomp.org>
+
+ * gnu/java/net/protocol/http/Connection.java (userAgent): New static
+ final field.
+ (sendRequest): Use new field in user-agent http agent.
+
2004-06-27 Mark Wielaard <mark@klomp.org>
* java/awt/EventQueue.java (postEvent): Throw NullPointerException
private static boolean proxyInUse = false;
private static String proxyHost = null;
+ private static final String userAgent;
+
static
{
// Recognize some networking properties listed at
}
}
}
+
+ userAgent = "gnu-classpath/"
+ + System.getProperty("gnu.classpath.version")
+ + " ("
+ + System.getProperty("gnu.classpath.vm.shortname")
+ + "/"
+ + System.getProperty("java.vm.version")
+ + ")";
}
/**
setRequestProperty ("Connection", "Close");
if (getRequestProperty ("user-agent") == null)
- setRequestProperty ("user-agent", "gnu-libgcj/"
- + System.getProperty ("java.vm.version"));
+ setRequestProperty ("user-agent", userAgent);
if (getRequestProperty ("accept") == null)
setRequestProperty ("accept", "*/*");