Make following redirects explicit in HttpClient::get
This commit is contained in:
parent
78afbb3599
commit
0e1e5b7d55
7 changed files with 21 additions and 15 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue