Backpedal on previous change to include Servername ("Helma")
again instead of printing only the version number.
This commit is contained in:
parent
1db50720f7
commit
48205c183e
2 changed files with 5 additions and 5 deletions
|
@ -457,7 +457,7 @@ public class Serve implements ServletContext, Runnable
|
||||||
// Same as the CGI variable SERVER_SOFTWARE.
|
// Same as the CGI variable SERVER_SOFTWARE.
|
||||||
public String getServerInfo()
|
public String getServerInfo()
|
||||||
{
|
{
|
||||||
return helma.main.Server.version + " (" + ServeUtils.serverUrl + ")";
|
return ServeUtils.serverName + " " + helma.main.Server.version + " (" + ServeUtils.serverUrl + ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the value of the named attribute of the network service, or
|
/// Returns the value of the named attribute of the network service, or
|
||||||
|
@ -684,7 +684,7 @@ class ServeConnection implements Runnable, HttpServletRequest, HttpServletRespon
|
||||||
setStatus( SC_OK );
|
setStatus( SC_OK );
|
||||||
setDateHeader( "Date", System.currentTimeMillis() );
|
setDateHeader( "Date", System.currentTimeMillis() );
|
||||||
setHeader(
|
setHeader(
|
||||||
"Server", helma.main.Server.version );
|
"Server", ServeUtils.serverName + "/" + helma.main.Server.version );
|
||||||
setHeader( "Connection", "close" );
|
setHeader( "Connection", "close" );
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
@ -42,9 +42,9 @@ public class ServeUtils
|
||||||
{
|
{
|
||||||
|
|
||||||
// Server identification.
|
// Server identification.
|
||||||
// public static final String serverName = "Helma";
|
public static final String serverName = "Helma";
|
||||||
// public static final String serverVersion = "1.2 p1";
|
|
||||||
// we're using the server version from helma.main.Server class.
|
// we're using the server version from helma.main.Server class.
|
||||||
|
// public static final String serverVersion = "1.2 p1";
|
||||||
public static final String serverUrl = "http://helma.org/";
|
public static final String serverUrl = "http://helma.org/";
|
||||||
|
|
||||||
/// Write a standard-format HTML address for this server.
|
/// Write a standard-format HTML address for this server.
|
||||||
|
@ -53,7 +53,7 @@ public class ServeUtils
|
||||||
PrintStream p = new PrintStream( o );
|
PrintStream p = new PrintStream( o );
|
||||||
p.println(
|
p.println(
|
||||||
"<ADDRESS><A HREF=\"" + serverUrl + "\">" +
|
"<ADDRESS><A HREF=\"" + serverUrl + "\">" +
|
||||||
helma.main.Server.version + "</A></ADDRESS>" );
|
serverName + " " + helma.main.Server.version + "</A></ADDRESS>" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue