From acdbd0c02800c6a3c44f6767f4ec4cb61fc5276f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Prante?= Date: Sun, 1 Oct 2023 10:11:02 +0200 Subject: [PATCH] add content method with bytes for netty client --- gradle.properties | 2 +- .../org/xbib/net/http/client/netty/HttpRequestBuilder.java | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 535374b..b7691b9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ group = org.xbib name = net-http -version = 4.0.0 +version = 4.0.1 org.gradle.warning.mode = ALL diff --git a/net-http-client-netty/src/main/java/org/xbib/net/http/client/netty/HttpRequestBuilder.java b/net-http-client-netty/src/main/java/org/xbib/net/http/client/netty/HttpRequestBuilder.java index 90f326f..4bc3e48 100644 --- a/net-http-client-netty/src/main/java/org/xbib/net/http/client/netty/HttpRequestBuilder.java +++ b/net-http-client-netty/src/main/java/org/xbib/net/http/client/netty/HttpRequestBuilder.java @@ -128,6 +128,12 @@ public class HttpRequestBuilder extends BaseHttpRequestBuilder { return this; } + @Override + public HttpRequestBuilder content(byte[] bytes, String contentType) { + super.content(bytes, contentType); + return this; + } + @Override public HttpRequestBuilder setFollowRedirect(boolean followRedirect) { super.setFollowRedirect(followRedirect);