From 21922296411d7405875d2249eca300e9d87184a4 Mon Sep 17 00:00:00 2001 From: Rob Rudin Date: Wed, 11 Mar 2026 16:04:21 -0400 Subject: [PATCH] MLE-27481 Small Polaris fix --- .../java/com/marklogic/client/impl/OkHttpServices.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/marklogic-client-api/src/main/java/com/marklogic/client/impl/OkHttpServices.java b/marklogic-client-api/src/main/java/com/marklogic/client/impl/OkHttpServices.java index 573f89b0b..86e912a96 100644 --- a/marklogic-client-api/src/main/java/com/marklogic/client/impl/OkHttpServices.java +++ b/marklogic-client-api/src/main/java/com/marklogic/client/impl/OkHttpServices.java @@ -2643,7 +2643,7 @@ private void putPostValueImpl(RequestLogger reqlog, String method, Object nextValue = (handle != null) ? handle.sendContent() : value; - RequestBody sentValue = null; + RequestBody sentValue; if (nextValue instanceof OutputStreamSender) { sentValue = new StreamingOutputImpl( (OutputStreamSender) nextValue, reqlog, mediaType); @@ -2676,9 +2676,7 @@ private void putPostValueImpl(RequestLogger reqlog, String method, requestBldr = addTelemetryAgentId(requestBldr); } - response = (sentValue == null) ? - sendRequestOnce(requestBldr.put(null).build()) : - sendRequestOnce(requestBldr.put(sentValue).build()); + response = sendRequestOnce(requestBldr.put(sentValue).build()); } else if ("post".equals(method)) { if (requestBldr == null) { connectPath = type; @@ -2688,9 +2686,7 @@ private void putPostValueImpl(RequestLogger reqlog, String method, requestBldr = addTelemetryAgentId(requestBldr); } - response = (sentValue == null) ? - sendRequestOnce(requestBldr.post(RequestBody.create("", null)).build()) : - sendRequestOnce(requestBldr.post(sentValue).build()); + response = sendRequestOnce(requestBldr.post(sentValue).build()); } else { throw new MarkLogicInternalException("unknown method type " + method);