From 1fb6f0aeab11a6c8da40b15dc7c71009052580aa Mon Sep 17 00:00:00 2001 From: mucst <6030173+mucst@users.noreply.github.com> Date: Tue, 12 Dec 2023 15:50:43 +0100 Subject: [PATCH] Do not set the Accept-Charset HTTP Header as it's a "forbidden" header This is documented at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Charset --- src/main/java/com/bettercloud/vault/rest/Rest.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/com/bettercloud/vault/rest/Rest.java b/src/main/java/com/bettercloud/vault/rest/Rest.java index 3d528d13..20a55018 100644 --- a/src/main/java/com/bettercloud/vault/rest/Rest.java +++ b/src/main/java/com/bettercloud/vault/rest/Rest.java @@ -390,7 +390,6 @@ private RestResponse postOrPutImpl(final boolean doPost) throws RestException { } connection.setDoOutput(true); - connection.setRequestProperty("Accept-Charset", "UTF-8"); // If a body payload has been provided, then it takes precedence. Otherwise, look for any additional // parameters to send as form field values. Parameters sent via the base URL query string are left