You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ab...@apache.org on 2025/01/15 16:32:36 UTC
(cassandra-java-driver) branch 3.x updated: CASSJAVA-55 Remove setting "Host" header for metadata requests.
This is an automated email from the ASF dual-hosted git repository.
absurdfarce pushed a commit to branch 3.x
in repository https://gitbox.apache.org/repos/asf/cassandra-java-driver.git
The following commit(s) were added to refs/heads/3.x by this push:
new a22143914 CASSJAVA-55 Remove setting "Host" header for metadata requests.
a22143914 is described below
commit a221439142557ddc7956081bd2e2a131cd3be3d4
Author: absurdfarce <ab...@apache.org>
AuthorDate: Wed Jan 15 10:27:53 2025 -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
---
.../src/main/java/com/datastax/driver/core/CloudConfigFactory.java | 1 -
1 file changed, 1 deletion(-)
diff --git a/driver-core/src/main/java/com/datastax/driver/core/CloudConfigFactory.java b/driver-core/src/main/java/com/datastax/driver/core/CloudConfigFactory.java
index cee81267c..d2181cc3e 100644
--- a/driver-core/src/main/java/com/datastax/driver/core/CloudConfigFactory.java
+++ b/driver-core/src/main/java/com/datastax/driver/core/CloudConfigFactory.java
@@ -208,7 +208,6 @@ 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(), UTF_8));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org