fix(接口测试): 修复DELETE请求Body数据未生效问题
--bug=1012990 --user=赵勇 [接口测试]github#13240DELETE方法的接口,body体无效 https://www.tapd.cn/55049933/s/1152908
This commit is contained in:
parent
8bba070b76
commit
3640c90cd2
|
@ -188,7 +188,7 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
|||
setSamplerPath(config, httpConfig, sampler);
|
||||
|
||||
// 请求体处理
|
||||
if (this.body != null && StringUtils.equalsAnyIgnoreCase(method, "POST", "PUT", "PATCH")) {
|
||||
if (this.body != null && !StringUtils.equalsAnyIgnoreCase(method, "GET")) {
|
||||
List<KeyValue> bodyParams = this.body.getBodyParams(sampler, this.getId());
|
||||
if (StringUtils.isNotEmpty(this.body.getType()) && "Form Data".equals(this.body.getType())) {
|
||||
AtomicBoolean kvIsEmpty = new AtomicBoolean(true);
|
||||
|
|
Loading…
Reference in New Issue