jericho 01/05/11 00:50:01
Modified: httpclient/src/java/org/apache/commons/httpclient
HttpMethodBase.java
Log:
- Make the initial status and message confirmed for the HTTP methods.
Revision Changes Path
1.2 +6 -6
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.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- HttpMethodBase.java 2001/04/25 18:42:51 1.1
+++ HttpMethodBase.java 2001/05/11 07:49:56 1.2
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v
1.1 2001/04/25 18:42:51 remm Exp $
- * $Revision: 1.1 $
- * $Date: 2001/04/25 18:42:51 $
+ * $Header:
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v
1.2 2001/05/11 07:49:56 jericho Exp $
+ * $Revision: 1.2 $
+ * $Date: 2001/05/11 07:49:56 $
*
* ====================================================================
*
@@ -98,13 +98,13 @@
/**
* Status code.
*/
- protected int statusCode = HttpStatus.SC_OK;
+ protected int statusCode = -1;
/**
* Status text.
*/
- protected String statusText = "OK";
+ protected String statusText = "Method Not Processed";
/**
@@ -374,8 +374,8 @@
*/
public void recycle() {
path = "/";
- statusCode = HttpStatus.SC_OK;
- statusText = "OK";
+ statusCode = -1;
+ statusText = "Method Not Processed";
requestHeaders.clear();
responseHeaders.clear();
parameters.clear();