Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 71055 invoked from network); 5 Mar 2003 03:47:29 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 5 Mar 2003 03:47:29 -0000 Received: (qmail 3877 invoked by uid 97); 5 Mar 2003 03:49:16 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 3870 invoked from network); 5 Mar 2003 03:49:16 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 5 Mar 2003 03:49:16 -0000 Received: (qmail 70811 invoked by uid 500); 5 Mar 2003 03:47:27 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 70800 invoked by uid 500); 5 Mar 2003 03:47:26 -0000 Received: (qmail 70797 invoked from network); 5 Mar 2003 03:47:26 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 5 Mar 2003 03:47:26 -0000 Received: (qmail 95758 invoked by uid 1258); 5 Mar 2003 03:47:25 -0000 Date: 5 Mar 2003 03:47:25 -0000 Message-ID: <20030305034725.95757.qmail@icarus.apache.org> From: jericho@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient URI.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N jericho 2003/03/04 19:47:25 Modified: httpclient/src/java/org/apache/commons/httpclient URI.java Log: - Fix a bug not to resolve a type of relative URI for "http://a" and "./current.html" correctly. Reported by Ivar Thank you! Revision Changes Path 1.34 +6 -8 jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URI.java Index: URI.java =================================================================== RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URI.java,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- URI.java 17 Feb 2003 04:15:32 -0000 1.33 +++ URI.java 5 Mar 2003 03:47:25 -0000 1.34 @@ -2927,10 +2927,8 @@ } else { StringBuffer buff = new StringBuffer(base.length() + relPath.length); - if (at != -1) { - buff.append(base.substring(0, at + 1)); - buff.append(relPath); - } + buff.append((at != -1) ? base.substring(0, at + 1) : "/"); + buff.append(relPath); return normalize(buff.toString().toCharArray()); } } --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org