Update post_json to take in a bool for allowing for redirects

This commit is contained in:
Joseph Lyons 2023-05-02 23:22:55 -04:00
parent 7f5afeb9fa
commit 69a4fffae2
2 changed files with 9 additions and 3 deletions

View file

@ -270,7 +270,7 @@ impl Telemetry {
}])?;
this.http_client
.post_json(MIXPANEL_ENGAGE_URL, json_bytes.into())
.post_json(MIXPANEL_ENGAGE_URL, json_bytes.into(), false)
.await?;
anyhow::Ok(())
}
@ -404,7 +404,7 @@ impl Telemetry {
json_bytes.clear();
serde_json::to_writer(&mut json_bytes, &events)?;
this.http_client
.post_json(MIXPANEL_EVENTS_URL, json_bytes.into())
.post_json(MIXPANEL_EVENTS_URL, json_bytes.into(), false)
.await?;
anyhow::Ok(())
}
@ -454,7 +454,7 @@ impl Telemetry {
}
this.http_client
.post_json(CLICKHOUSE_EVENTS_URL.as_str(), json_bytes.into())
.post_json(CLICKHOUSE_EVENTS_URL.as_str(), json_bytes.into(), false)
.await?;
anyhow::Ok(())
}