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
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 cee8126..d2181cc 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 @@
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));
}