fixed Content-type header in external patch

This commit is contained in:
reynisson 2021-11-20 23:44:47 +01:00
parent 53d815b93d
commit 1bd387413e

View File

@ -55,7 +55,7 @@ public class ExternalTaskExecutedWebAdapter implements ExternalTaskExecutedEvent
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(externalTaskExecutedEvent.getOriginalTaskUri().getValue()))
.header("Content-Type", "application/json")
.header("Content-Type", TaskJsonPatchRepresentation.MEDIA_TYPE)
.method("PATCH", HttpRequest.BodyPublishers.ofString(body))
.build();