Author: sebb
Date: Sat Nov 10 15:38:32 2012
New Revision: 1407838
URL: http://svn.apache.org/viewvc?rev=1407838&view=rev
Log:
Use HTTPConstants for method names
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/DefaultSamplerCreator.java
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/DefaultSamplerCreator.java
URL:
http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/DefaultSamplerCreator.java?rev=1407838&r1=1407837&r2=1407838&view=diff
==============================================================================
---
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/DefaultSamplerCreator.java
(original)
+++
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/DefaultSamplerCreator.java
Sat Nov 10 15:38:32 2012
@@ -170,7 +170,7 @@ public class DefaultSamplerCreator exten
// Set the file uploads
sampler.setHTTPFiles(urlConfig.getHTTPFileArgs().asArray());
// used when postData is pure xml (eg. an xml-rpc call) or for PUT
- } else if (postData.trim().startsWith("<?") ||
"PUT".equals(sampler.getMethod())) {
+ } else if (postData.trim().startsWith("<?") ||
HTTPConstants.PUT.equals(sampler.getMethod())) {
sampler.addNonEncodedArgument("", postData, "");
} else if (contentType == null ||
contentType.startsWith(HTTPConstants.APPLICATION_X_WWW_FORM_URLENCODED) ){
// It is the most common post request, with parameter name and
values