Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 81651 invoked from network); 11 Dec 2002 13:21:53 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 11 Dec 2002 13:21:53 -0000 Received: (qmail 19318 invoked by uid 97); 11 Dec 2002 13:22:57 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 19298 invoked by uid 97); 11 Dec 2002 13:22:57 -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 19287 invoked by uid 97); 11 Dec 2002 13:22:56 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: 11 Dec 2002 13:21:43 -0000 Message-ID: <20021211132143.25060.qmail@icarus.apache.org> From: oglueck@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpMethodBase.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 oglueck 2002/12/11 05:21:43 Modified: httpclient/src/java/org/apache/commons/httpclient HttpMethodBase.java Log: Fixed bug #15016 Patch contributed by Michael Becke Revision Changes Path 1.87 +9 -8 jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java Index: HttpMethodBase.java =================================================================== RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v retrieving revision 1.86 retrieving revision 1.87 diff -u -r1.86 -r1.87 --- HttpMethodBase.java 10 Dec 2002 04:05:03 -0000 1.86 +++ HttpMethodBase.java 11 Dec 2002 13:21:43 -0000 1.87 @@ -68,7 +68,6 @@ import java.io.UnsupportedEncodingException; import java.net.MalformedURLException; import java.net.URL; -import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; @@ -966,9 +965,11 @@ return false; } - //update the current location with the redirect location - setPath(redirectUrl.getPath()); - setQueryString(redirectUrl.getQuery()); + //update the current location with the redirect location. + //avoiding use of URL.getPath() and URL.getQuery() to keep + //jdk1.2 comliance. + setPath( URIUtil.getPath( redirectUrl.toString() ) ); + setQueryString( URIUtil.getQuery( redirectUrl.toString() ) ); if (log.isDebugEnabled()) { log.debug("Redirecting from '" + currentUrl.toExternalForm() -- To unsubscribe, e-mail: For additional commands, e-mail: