Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 83756 invoked from network); 9 Apr 2002 18:42:49 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 9 Apr 2002 18:42:49 -0000 Received: (qmail 17887 invoked by uid 97); 9 Apr 2002 18:42:48 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 17871 invoked by uid 97); 9 Apr 2002 18:42:48 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 17832 invoked from network); 9 Apr 2002 18:42:47 -0000 Message-ID: <032401c1dff6$64547510$6501a8c0@apache.org> From: "Remy Maucherat" To: "Tomcat Developers List" References: <20020409172350.55242.qmail@icarus.apache.org> Subject: Re: cvs commit: jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11 Http11Processor.java Date: Tue, 9 Apr 2002 11:43:05 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: localhost.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > costin 02/04/09 10:23:49 > > Modified: http11/src/java/org/apache/coyote/http11 > Http11Processor.java > Log: > If host header is not set, use the local socket to set the local port > and hostname. > > Remy - I'm not sure if this is correct, but I see no other way to > pass this info ( I could add a callback - but this is needed in most > calls ). > > If there is any particular reason to keep port and localhost unset > I'll rollback and add the callback. > > ( this used to be in the 3.3-specific code, and is needed to construct > redirects, etc ) > + //The info from socket is usually acurate > + // req.setServerPort(80); That's not good. If no host is specified with HTTP/1.1, we must default to the protocol default (as per the HTTP spec). The if HostMB == null implies HTTP/1.0 (with HTTP/1.1, the request processing would be mostly over without a Host header, with a 400 response). I've modified the patch to reflect this. Remy -- To unsubscribe, e-mail: For additional commands, e-mail: