ASF Bugzilla – Attachment 34617 Details for
Bug 60575
HTTP request: Even if there are no Parameters, a Body is sent for GET method
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Only send Parameters as Post-Body, if there are Parameters
01.diff (text/plain), 1.19 KB, created by
Felix Schumacher
on 2017-01-12 14:28:51 UTC
(
hide
)
Description:
Only send Parameters as Post-Body, if there are Parameters
Filename:
MIME Type:
Creator:
Felix Schumacher
Created:
2017-01-12 14:28:51 UTC
Size:
1.19 KB
patch
obsolete
>diff --git a/extras/proxycert.sh b/extras/proxycert.sh >old mode 100644 >new mode 100755 >diff --git a/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java b/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java >index 6e657ba..9b75d75 100644 >--- a/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java >+++ b/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java >@@ -384,15 +384,15 @@ public abstract class HTTPSamplerBase extends AbstractSampler > if (getPostBodyRaw()) { > return true; > } else { >- boolean noArgumentsHasName = true; >+ boolean hasArguments = false; > for (JMeterProperty jMeterProperty : getArguments()) { >+ hasArguments = true; > HTTPArgument arg = (HTTPArgument) jMeterProperty.getObjectValue(); > if (arg.getName() != null && arg.getName().length() > 0) { >- noArgumentsHasName = false; >- break; >+ return false; > } > } >- return noArgumentsHasName; >+ return hasArguments; > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 60575
:
34610
|
34614
| 34617