diff options
author | jonmv <venstad@gmail.com> | 2022-11-03 15:45:09 +0100 |
---|---|---|
committer | jonmv <venstad@gmail.com> | 2022-11-03 15:45:09 +0100 |
commit | f4a66aa09b2ece9a3b284b2f2c11312bc29d6250 (patch) | |
tree | 8a641a1501fa84ff586e78549c736abad47f673c /http-client | |
parent | f508e2814503fec3bec0763a69f35f7e5a97daa9 (diff) |
Use ApplicationPackgeStream for deployments
Diffstat (limited to 'http-client')
-rw-r--r-- | http-client/src/main/java/ai/vespa/hosted/client/AbstractHttpClient.java | 1 | ||||
-rw-r--r-- | http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/http-client/src/main/java/ai/vespa/hosted/client/AbstractHttpClient.java b/http-client/src/main/java/ai/vespa/hosted/client/AbstractHttpClient.java index ed3fee101ed..08ac3b54903 100644 --- a/http-client/src/main/java/ai/vespa/hosted/client/AbstractHttpClient.java +++ b/http-client/src/main/java/ai/vespa/hosted/client/AbstractHttpClient.java @@ -18,6 +18,7 @@ import org.apache.hc.core5.http.io.entity.EntityUtils; import org.apache.hc.core5.http.io.entity.HttpEntities; import org.apache.hc.core5.http.io.support.ClassicRequestBuilder; import org.apache.hc.core5.util.Timeout; +import sun.misc.Unsafe; import java.io.IOException; import java.io.UncheckedIOException; diff --git a/http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java b/http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java index ea8328ed793..2e60260e4c0 100644 --- a/http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java +++ b/http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java @@ -80,7 +80,7 @@ public interface HttpClient extends Closeable { /** Sets the request body. */ default RequestBuilder body(HttpEntity entity) { if (entity.isRepeatable()) return body(() -> entity); - throw new IllegalArgumentException("entitiy must be repeatable, or a supplier must be used"); + throw new IllegalArgumentException("entity must be repeatable, or a supplier must be used"); } /** Sets the request body. */ |