diff --git a/src/main/java/com/loadium/postman2jmx/builder/JmxRawBodyBuilder.java b/src/main/java/com/loadium/postman2jmx/builder/JmxRawBodyBuilder.java index 24ac242..4594312 100644 --- a/src/main/java/com/loadium/postman2jmx/builder/JmxRawBodyBuilder.java +++ b/src/main/java/com/loadium/postman2jmx/builder/JmxRawBodyBuilder.java @@ -17,7 +17,7 @@ public HTTPSamplerProxy buildJmxBody(PostmanItem postmanItem) { HTTPSamplerProxy httpSamplerProxy = JmxHTTPSamplerProxy.newInstance(postmanItem); - if (HttpMethod.POST.equalsIgnoreCase(httpSamplerProxy.getMethod()) || HttpMethod.PUT.equalsIgnoreCase(httpSamplerProxy.getMethod()) || HttpMethod.DELETE.equalsIgnoreCase(httpSamplerProxy.getMethod())) { + if (HttpMethod.POST.equalsIgnoreCase(httpSamplerProxy.getMethod()) || HttpMethod.PUT.equalsIgnoreCase(httpSamplerProxy.getMethod()) || HttpMethod.DELETE.equalsIgnoreCase(httpSamplerProxy.getMethod()) || httpSamplerProxy.getMethod().equalsIgnoreCase("PATCH")) { httpSamplerProxy.setPostBodyRaw(true); Arguments arguments = new Arguments(); PostmanRawBody raw = postmanItem.getRequest().getBody().getRaw();