Author: sebb
Date: Thu Oct 18 03:27:02 2007
New Revision: 585917
URL: http://svn.apache.org/viewvc?rev=585917&view=rev
Log:
getUseMultipartForPost only applies to POST requests
Modified:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Modified:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java?rev=585917&r1=585916&r2=585917&view=diff
==============================================================================
---
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
(original)
+++
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Thu Oct 18 03:27:02 2007
@@ -328,12 +328,12 @@
* Determine if we should use multipart/form-data or
* application/x-www-form-urlencoded for the post
*
- * @return true if multipart/form-data should be used
+ * @return true if multipart/form-data should be used and method is POST
*/
public boolean getUseMultipartForPost(){
// We use multipart if we have been told so, or files are present
// and the files should not be send as the post body
- if(getDoMultipartPost() || (hasUploadableFiles() &&
!getSendFileAsPostBody())) {
+ if(POST.equals(getMethod()) && (getDoMultipartPost() ||
(hasUploadableFiles() && !getSendFileAsPostBody()))) {
return true;
}
else {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]