Make following redirects explicit in HttpClient::get

This commit is contained in:
Antonio Scandurra 2022-04-27 13:14:45 +02:00
parent 78afbb3599
commit 0e1e5b7d55
7 changed files with 21 additions and 15 deletions

View file

@ -781,7 +781,7 @@ impl Client {
let http = self.http.clone();
cx.background().spawn(async move {
let mut rpc_url = format!("{}/rpc", *ZED_SERVER_URL);
let rpc_response = http.get(&rpc_url, Default::default()).await?;
let rpc_response = http.get(&rpc_url, Default::default(), false).await?;
if rpc_response.status().is_redirection() {
rpc_url = rpc_response
.headers()