jsdever 2002/12/09 20:05:03
Modified: httpclient/src/java/org/apache/commons/httpclient
HttpMethodBase.java
Log:
Fix bug introduced in a adding a cookie header.
Revision Changes Path
1.86 +5 -17
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.85
retrieving revision 1.86
diff -u -r1.85 -r1.86
--- HttpMethodBase.java 9 Dec 2002 09:16:16 -0000 1.85
+++ HttpMethodBase.java 10 Dec 2002 04:05:03 -0000 1.86
@@ -1224,19 +1224,7 @@
state.getCookies());
if ((cookies != null) && (cookies.length > 0))
{
- if (this.strictMode)
- {
- // If in strict mode put all cookie in one header
- setRequestHeader(matcher.formatCookieHeader(cookies));
- }
- else
- {
- // If not in strict mode put each cookie in a separate header
- for(int i = 0; i < cookies.length; i++)
- {
- setRequestHeader(matcher.formatCookieHeader(cookies[i]));
- }
- }
+ setRequestHeader(matcher.formatCookieHeader(cookies));
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>