From 83e5fbaeaeb88f21ac98dfdbd7e227bf530e3bb2 Mon Sep 17 00:00:00 2001 From: john duggan Date: Sat, 5 Sep 2020 15:39:00 +0100 Subject: [PATCH] Added 'PATCH' to the list of calls for building the JmxBody. --- .../java/com/loadium/postman2jmx/builder/JmxRawBodyBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();