olegk 2003/02/01 06:11:24 Modified: httpclient/src/java/org/apache/commons/httpclient/methods EntityEnclosingMethod.java Log: Fixed a minor bug in EntityEnclosingMethod.addRequestHeaders Committed by Oleg Kalnichevski Revision Changes Path 1.3 +5 -4 jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/EntityEnclosingMethod.java Index: EntityEnclosingMethod.java =================================================================== RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/EntityEnclosingMethod.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- EntityEnclosingMethod.java 1 Feb 2003 06:46:10 -0000 1.2 +++ EntityEnclosingMethod.java 1 Feb 2003 14:11:24 -0000 1.3 @@ -359,7 +359,8 @@ super.addRequestHeaders(state, conn); // Send expectation header, provided there's something to be sent - if (isHttp11() && getUseExpectHeader() && (this.requestBodyStream != null)) { + if (isHttp11() && getUseExpectHeader() && + ((this.requestBodyStream != null) || this.buffer != null)) { if (getRequestHeader("Expect") == null) { setRequestHeader("Expect", "100-continue"); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]