directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r448082 - in /directory/trunks/mina/example/src/main/java/org/apache/mina/example/httpserver/codec: HttpResponseMessage.java Server.java
Date Wed, 20 Sep 2006 06:06:52 GMT
Author: trustin
Date: Tue Sep 19 23:06:51 2006
New Revision: 448082

URL: http://svn.apache.org/viewvc?view=rev&rev=448082
Log:
Fixed a runtime error when a client connects to the new http server

Modified:
    directory/trunks/mina/example/src/main/java/org/apache/mina/example/httpserver/codec/HttpResponseMessage.java
    directory/trunks/mina/example/src/main/java/org/apache/mina/example/httpserver/codec/Server.java

Modified: directory/trunks/mina/example/src/main/java/org/apache/mina/example/httpserver/codec/HttpResponseMessage.java
URL: http://svn.apache.org/viewvc/directory/trunks/mina/example/src/main/java/org/apache/mina/example/httpserver/codec/HttpResponseMessage.java?view=diff&rev=448082&r1=448081&r2=448082
==============================================================================
--- directory/trunks/mina/example/src/main/java/org/apache/mina/example/httpserver/codec/HttpResponseMessage.java
(original)
+++ directory/trunks/mina/example/src/main/java/org/apache/mina/example/httpserver/codec/HttpResponseMessage.java
Tue Sep 19 23:06:51 2006
@@ -51,9 +51,7 @@
 
     public HttpResponseMessage()
     {
-        String[] ver = Server.VERSION_STRING.split( " " );
-        headers.put( "Server", "HttpServer - Revision: " + ver[ 1 ] + " "
-                + ver[ 7 ] + " " + ver[ 8 ] + " " + ver[ 9 ] + " " + ver[ 10 ] );
+        headers.put( "Server", "HttpServer (" + Server.VERSION_STRING + ')' );
         headers.put( "Cache-Control", "private" );
         headers.put( "Content-Type", "text/html; charset=iso-8859-1" );
         headers.put( "Connection", "keep-alive" );

Modified: directory/trunks/mina/example/src/main/java/org/apache/mina/example/httpserver/codec/Server.java
URL: http://svn.apache.org/viewvc/directory/trunks/mina/example/src/main/java/org/apache/mina/example/httpserver/codec/Server.java?view=diff&rev=448082&r1=448081&r2=448082
==============================================================================
--- directory/trunks/mina/example/src/main/java/org/apache/mina/example/httpserver/codec/Server.java
(original)
+++ directory/trunks/mina/example/src/main/java/org/apache/mina/example/httpserver/codec/Server.java
Tue Sep 19 23:06:51 2006
@@ -34,7 +34,7 @@
 public class Server
 {
     /** Default HTTP port */
-    private static int DEFAULT_PORT = 80;
+    private static int DEFAULT_PORT = 8080;
 
     /** Tile server revision number */
     public static final String VERSION_STRING = "$Revision$ $Date$";



Mime
View raw message