Merge branch '6.2.x'

This commit is contained in:
Brian Clozel
2025-06-02 15:48:19 +02:00
2 changed files with 33 additions and 1 deletions

View File

@@ -149,7 +149,16 @@ class JdkClientHttpRequest extends AbstractStreamingClientHttpRequest {
}
});
builder.method(this.method.name(), bodyPublisher(headers, body));
switch (this.method.name()) {
case "GET" :
builder.GET();
break;
case "DELETE" :
builder.DELETE();
break;
default :
builder.method(this.method.name(), bodyPublisher(headers, body));
}
return builder.build();
}