This is an automated email from the ASF dual-hosted git repository. heneveld pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git
The following commit(s) were added to refs/heads/master by this push: new 799907a655 fix patch support with body 799907a655 is described below commit 799907a655b1e4fa8070b6bd521f558b312a6de2 Author: Alex Heneveld <a...@cloudsoft.io> AuthorDate: Mon May 27 16:40:40 2024 +0100 fix patch support with body --- utils/common/src/main/java/org/apache/brooklyn/util/http/HttpTool.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/common/src/main/java/org/apache/brooklyn/util/http/HttpTool.java b/utils/common/src/main/java/org/apache/brooklyn/util/http/HttpTool.java index 8d26faa707..7721f0c4b5 100644 --- a/utils/common/src/main/java/org/apache/brooklyn/util/http/HttpTool.java +++ b/utils/common/src/main/java/org/apache/brooklyn/util/http/HttpTool.java @@ -480,6 +480,8 @@ public class HttpTool { ((HttpPost) request).setEntity(this.body); } else if (request instanceof HttpPut) { ((HttpPut) request).setEntity(this.body); + } else if (request instanceof HttpPatch) { + ((HttpPatch) request).setEntity(this.body); } else { throw new Exception(this.requestClass.getSimpleName() + " does not support a request body"); }