From 65ea6adc83f58009473fe13aba8867c354d6097b Mon Sep 17 00:00:00 2001 From: jbtrystram Date: Thu, 16 Dec 2021 13:05:51 +0100 Subject: [PATCH] create a token respond 200 --- src/tokens/v1/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tokens/v1/client.rs b/src/tokens/v1/client.rs index 9e0cf74..8e3bf81 100644 --- a/src/tokens/v1/client.rs +++ b/src/tokens/v1/client.rs @@ -87,7 +87,7 @@ where async fn create_response(response: Response) -> ClientResult { 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, } }