remm 02/04/05 07:53:09 Modified: http11/src/java/org/apache/coyote/http11 Http11Processor.java Log: - Coding style :) Revision Changes Path 1.13 +7 -4 jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java Index: Http11Processor.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- Http11Processor.java 4 Apr 2002 22:34:46 -0000 1.12 +++ Http11Processor.java 5 Apr 2002 15:53:09 -0000 1.13 @@ -651,12 +651,13 @@ } + /** * Parse host. */ public static void parseHost(Request req) - throws IOException - { + throws IOException { + MessageBytes valueMB = req.getMimeHeaders().getValue("host"); // 3.3 version. In 4.0 it is extracted from the host header. // XXX I would rather trust the socket... @@ -682,7 +683,7 @@ break; } } - + if (colonPos < 0) { req.setServerPort(80); req.serverName().setBytes( valueB, valueS, valueL); @@ -703,8 +704,10 @@ } req.setServerPort(port); } + } - + + /** * When committing the response, we have to validate the set of headers, as * well as setup the response filters.
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>