Skip to content

Commit 7bf3ace

Browse files
committed
use contentType replace with content-type
Signed-off-by: theonefx <[email protected]>
1 parent 875a1a9 commit 7bf3ace

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/src/main/java/io/dapr/client/DaprClientImpl.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ public <T> Mono<T> invokeBinding(InvokeBindingRequest request, TypeRef<T> type)
574574
builder.putAllMetadata(metadata);
575575
}
576576
if (objectSerializer.getContentType() != null && !objectSerializer.getContentType().isEmpty()) {
577-
builder.putMetadata(io.dapr.client.domain.Metadata.CONTENT_TYPE, objectSerializer.getContentType());
577+
builder.putMetadata("contentType", objectSerializer.getContentType());
578578
}
579579

580580
DaprProtos.InvokeBindingRequest envelope = builder.build();
@@ -826,7 +826,7 @@ private <T> CommonProtos.StateItem.Builder buildStateRequest(State<T> state) thr
826826
stateBuilder.putAllMetadata(state.getMetadata());
827827
}
828828
if (objectSerializer.getContentType() != null && !objectSerializer.getContentType().isEmpty()) {
829-
stateBuilder.putMetadata(io.dapr.client.domain.Metadata.CONTENT_TYPE, objectSerializer.getContentType());
829+
stateBuilder.putMetadata("contentType", objectSerializer.getContentType());
830830
}
831831
if (bytes != null) {
832832
stateBuilder.setValue(ByteString.copyFrom(bytes));

0 commit comments

Comments
 (0)