This is an automated email from the ASF dual-hosted git repository.
absurdfarce pushed a commit to branch 4.x
in repository https://gitbox.apache.org/repos/asf/cassandra-java-driver.git
The following commit(s) were added to refs/heads/4.x by this push:
new 6a8674f2d CASSJAVA-55 Remove setting "Host" header for metadata
requests.
6a8674f2d is described below
commit 6a8674f2db92668359196b5492753612b3844594
Author: absurdfarce <[email protected]>
AuthorDate: Mon Nov 11 11:49:20 2024 -0600
CASSJAVA-55 Remove setting "Host" header for metadata requests.
With some sysprops enabled this will actually be respected which completely
borks Astra routing.
patch by Bret McGuire; reviewed by Alexandre Dutra and Bret McGuire for
CASSJAVA-55
---
.../oss/driver/internal/core/config/cloud/CloudConfigFactory.java | 1 -
1 file changed, 1 deletion(-)
diff --git
a/core/src/main/java/com/datastax/oss/driver/internal/core/config/cloud/CloudConfigFactory.java
b/core/src/main/java/com/datastax/oss/driver/internal/core/config/cloud/CloudConfigFactory.java
index b6b2cccc4..817b3263d 100644
---
a/core/src/main/java/com/datastax/oss/driver/internal/core/config/cloud/CloudConfigFactory.java
+++
b/core/src/main/java/com/datastax/oss/driver/internal/core/config/cloud/CloudConfigFactory.java
@@ -229,7 +229,6 @@ public class CloudConfigFactory {
HttpsURLConnection connection = (HttpsURLConnection)
metadataServiceUrl.openConnection();
connection.setSSLSocketFactory(sslContext.getSocketFactory());
connection.setRequestMethod("GET");
- connection.setRequestProperty("host", "localhost");
return new BufferedReader(
new InputStreamReader(connection.getInputStream(),
StandardCharsets.UTF_8));
} catch (ConnectException e) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]