Skip to content

Commit a221439

Browse files
committed
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
1 parent 392820f commit a221439

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

driver-core/src/main/java/com/datastax/driver/core/CloudConfigFactory.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ protected BufferedReader fetchProxyMetadata(URL metadataServiceUrl, SSLContext s
208208
HttpsURLConnection connection = (HttpsURLConnection) metadataServiceUrl.openConnection();
209209
connection.setSSLSocketFactory(sslContext.getSocketFactory());
210210
connection.setRequestMethod("GET");
211-
connection.setRequestProperty("host", "localhost");
212211
return new BufferedReader(new InputStreamReader(connection.getInputStream(), UTF_8));
213212
}
214213

0 commit comments

Comments
 (0)