Applied. Thanks! -Vincent
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 08 August 2002 18:41 > To: [EMAIL PROTECTED] > Subject: RE: JDK 1.2 versionHttpClientConnectionHelper.java patch > > > Hi, > > Here is the patch against HttpClientConnectionHelper.java > > The patched file should be placed in a new directory: > j2ee12/org/apache/cactus/client > > I have tested this on JDK 1.2.2 with Weblogic 5.1 sp 12 > > best regards, > > David George (www.kimble.co.uk) > > Index: HttpClientConnectionHelper.java > =================================================================== > RCS file: /home/cvspublic/jakarta- > cactus/framework/src/java/share/org/apache/cac > tus/client/HttpClientConnectionHelper.java,v > retrieving revision 1.1 > diff -u -r1.1 HttpClientConnectionHelper.java > --- HttpClientConnectionHelper.java 26 Jul 2002 18:50:29 -0000 > 1.1 > +++ HttpClientConnectionHelper.java 8 Aug 2002 17:35:34 -0000 > @@ -133,8 +133,22 @@ > > this.method.setUseDisk(false); > this.method.setFollowRedirects(false); > - this.method.setPath(url.getPath()); > - this.method.setQueryString(url.getQuery()); > + // JDK 1.2.2 version - David George > + String file = url.getFile(); > + String path = null; > + String query = null; > + if (file != null) { > + int q = file.lastIndexOf('?'); > + if (q != -1) { > + path = file.substring(0, q); > + query = file.substring(q+1); > + } else { > + path = file; > + query = ""; > + } > + } > + this.method.setPath(path); > + this.method.setQueryString(query); > > // Sets the content type > this.method.setRequestHeader("Content-type", > > > > ------------------------------------------ > > Faites un voeu et puis Voila ! www.voila.fr -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
