Skip to content

Commit 2192229

Browse files
committed
MLE-27481 Small Polaris fix
1 parent 46d1b40 commit 2192229

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

marklogic-client-api/src/main/java/com/marklogic/client/impl/OkHttpServices.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2643,7 +2643,7 @@ private void putPostValueImpl(RequestLogger reqlog, String method,
26432643

26442644
Object nextValue = (handle != null) ? handle.sendContent() : value;
26452645

2646-
RequestBody sentValue = null;
2646+
RequestBody sentValue;
26472647
if (nextValue instanceof OutputStreamSender) {
26482648
sentValue = new StreamingOutputImpl(
26492649
(OutputStreamSender) nextValue, reqlog, mediaType);
@@ -2676,9 +2676,7 @@ private void putPostValueImpl(RequestLogger reqlog, String method,
26762676
requestBldr = addTelemetryAgentId(requestBldr);
26772677
}
26782678

2679-
response = (sentValue == null) ?
2680-
sendRequestOnce(requestBldr.put(null).build()) :
2681-
sendRequestOnce(requestBldr.put(sentValue).build());
2679+
response = sendRequestOnce(requestBldr.put(sentValue).build());
26822680
} else if ("post".equals(method)) {
26832681
if (requestBldr == null) {
26842682
connectPath = type;
@@ -2688,9 +2686,7 @@ private void putPostValueImpl(RequestLogger reqlog, String method,
26882686
requestBldr = addTelemetryAgentId(requestBldr);
26892687
}
26902688

2691-
response = (sentValue == null) ?
2692-
sendRequestOnce(requestBldr.post(RequestBody.create("", null)).build()) :
2693-
sendRequestOnce(requestBldr.post(sentValue).build());
2689+
response = sendRequestOnce(requestBldr.post(sentValue).build());
26942690
} else {
26952691
throw new MarkLogicInternalException("unknown method type "
26962692
+ method);

0 commit comments

Comments
 (0)