Skip to content

Commit

Permalink
create a token respond 200
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtrystram committed Dec 16, 2021
1 parent 1400766 commit 65ea6ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tokens/v1/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ where
async fn create_response<T: DeserializeOwned>(response: Response) -> ClientResult<T> {
log::debug!("Eval create response: {:#?}", response);
match response.status() {
StatusCode::CREATED => Ok(response.json().await?),
StatusCode::OK => Ok(response.json().await?),
_ => Self::default_response(response).await,
}
}
Expand Down

0 comments on commit 65ea6ad

Please sign in to comment.