You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by mi...@apache.org on 2010/11/19 08:28:51 UTC

svn commit: r1036752 - /jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java

Author: milamber
Date: Fri Nov 19 07:28:51 2010
New Revision: 1036752

URL: http://svn.apache.org/viewvc?rev=1036752&view=rev
Log:
Seems to miss a close parenthesis

Modified:
    jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java

Modified: jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java?rev=1036752&r1=1036751&r2=1036752&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java (original)
+++ jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java Fri Nov 19 07:28:51 2010
@@ -439,7 +439,7 @@ public class HttpRequestHdr {
                 // 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("<?") || "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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


Re: svn commit: r1036752 - /jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java

Posted by sebb <se...@gmail.com>.
On 19 November 2010 07:28,  <mi...@apache.org> wrote:
> Author: milamber
> Date: Fri Nov 19 07:28:51 2010
> New Revision: 1036752
>
> URL: http://svn.apache.org/viewvc?rev=1036752&view=rev
> Log:
> Seems to miss a close parenthesis

Thanks!

[Was using a different system to do the edit does not have a suitable
compiler. Thought I could do without!]

> Modified:
>    jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java
>
> Modified: jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java
> URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java?rev=1036752&r1=1036751&r2=1036752&view=diff
> ==============================================================================
> --- jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java (original)
> +++ jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java Fri Nov 19 07:28:51 2010
> @@ -439,7 +439,7 @@ public class HttpRequestHdr {
>                 // 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("<?") || "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
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: notifications-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: dev-help@jakarta.apache.org