Hi oglueck,
I don't know who is the original writer though.
It looks like trying to attatch additional parameters.
I think it's required to make sure or document...
setQuery... method being called just one time or more?
Sung-Gu
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 21, 2002 9:28 PM
Subject: cvs commit:
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient
HttpMethodBase.java
> oglueck 2002/10/21 05:28:15
>
> Modified: httpclient/src/java/org/apache/commons/httpclient
> HttpMethodBase.java
> Log:
> fixed ? in parameter string
>
> Revision Changes Path
> 1.68 +5 -5
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethod
Base.java
>
> Index: HttpMethodBase.java
> ===================================================================
> RCS file:
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/
HttpMethodBase.java,v
> retrieving revision 1.67
> retrieving revision 1.68
> diff -u -r1.67 -r1.68
> --- HttpMethodBase.java 21 Oct 2002 12:13:23 -0000 1.67
> +++ HttpMethodBase.java 21 Oct 2002 12:28:15 -0000 1.68
> @@ -1325,7 +1325,7 @@
> }
> buf.append(path);
> if (query != null) {
> - if (query.indexOf("?") < 0) {
> + if (query.indexOf("?") != 0) {
> buf.append("?");
> }
> String queryString = null;
--
To unsubscribe, e-mail: <mailto:commons-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>