Skip to content

Commit

Permalink
CASSJAVA-55 Remove setting "Host" header for metadata requests.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
absurdfarce committed Jan 15, 2025
1 parent 392820f commit a221439
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ protected BufferedReader fetchProxyMetadata(URL metadataServiceUrl, SSLContext s
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));
}

Expand Down

0 comments on commit a221439

Please sign in to comment.