Do not use post_json() to auto update

This commit is contained in:
Joseph Lyons 2023-05-04 12:12:01 -04:00
parent f51425d390
commit 8313414e1e
3 changed files with 4 additions and 10 deletions

View file

@ -40,14 +40,8 @@ pub trait HttpClient: Send + Sync {
&'a self,
uri: &str,
body: AsyncBody,
follow_redirects: bool,
) -> BoxFuture<'a, Result<Response<AsyncBody>, Error>> {
let request = isahc::Request::builder()
.redirect_policy(if follow_redirects {
RedirectPolicy::Follow
} else {
RedirectPolicy::None
})
.method(Method::POST)
.uri(uri)
.header("Content-Type", "application/json")