diff --git a/.gitignore b/.gitignore index 6847c4a..7e49439 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,8 @@ .idea/ *.iml +# VS Code +.factorypath +.vscode + **/dependency-reduced-pom.xml \ No newline at end of file diff --git a/tracing/src/main/java/io/strimzi/test/tracing/HttpHandle.java b/tracing/src/main/java/io/strimzi/test/tracing/HttpHandle.java index 6f35ec9..2e4d937 100644 --- a/tracing/src/main/java/io/strimzi/test/tracing/HttpHandle.java +++ b/tracing/src/main/java/io/strimzi/test/tracing/HttpHandle.java @@ -6,6 +6,7 @@ import java.net.URI; import java.net.URISyntaxException; +import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; @@ -18,7 +19,8 @@ protected HttpRequest.Builder builder(HttpContext context) { try { HttpRequest.Builder builder = HttpRequest.newBuilder() .uri(new URI(context.getUri())) - .setHeader(context.getHeaderKey(), context.getHeaderValue()); + .setHeader(context.getHeaderKey(), context.getHeaderValue()) + .version(HttpClient.Version.HTTP_1_1); if (context.getRecord() == null) { builder.GET();