From 6cb99d71eefa51b0e694d45610fc28f1b5ad92cb Mon Sep 17 00:00:00 2001 From: Szymon Sasin Date: Tue, 3 Oct 2023 20:29:04 +0300 Subject: [PATCH] Improvements --- coap-core/src/main/java/com/mbed/coap/packet/CoapRequest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coap-core/src/main/java/com/mbed/coap/packet/CoapRequest.java b/coap-core/src/main/java/com/mbed/coap/packet/CoapRequest.java index a5c7c958..4e81d3a0 100644 --- a/coap-core/src/main/java/com/mbed/coap/packet/CoapRequest.java +++ b/coap-core/src/main/java/com/mbed/coap/packet/CoapRequest.java @@ -78,11 +78,11 @@ public static Builder fetch(String uriPath) { } public static Builder patch(String uriPath) { - return new Builder(Method.PATCH, uriPath); + return request(Method.PATCH, uriPath); } public static Builder iPatch(String uriPath) { - return new Builder(Method.iPATCH, uriPath); + return request(Method.iPATCH, uriPath); } public static Builder observe(String uriPath) {