OAuth: redirect using a 301 instead of a 307 code

This commit is contained in:
Mauro D
2024-01-21 08:03:21 -03:00
parent d7d27063d8
commit 9f25761014
2 changed files with 3 additions and 19 deletions

View File

@@ -219,7 +219,7 @@ impl JMAP {
HtmlResponse::new(response).into_http_response()
} else {
hyper::Response::builder()
.status(StatusCode::TEMPORARY_REDIRECT)
.status(StatusCode::MOVED_PERMANENTLY)
.header(header::LOCATION, redirect_link)
.body(
Full::new(Bytes::from(Vec::<u8>::new()))

View File

@@ -75,15 +75,7 @@ impl SMTP {
match result.try_into() {
Ok(value) => Some(value),
Err(_) => {
tracing::warn!(
context = "eval_if",
event = "error",
property = if_block.key,
"Failed to convert value."
);
None
}
Err(_) => None,
}
}
@@ -112,15 +104,7 @@ impl SMTP {
match result.try_into() {
Ok(value) => Some(value),
Err(_) => {
tracing::warn!(
context = "eval_expr",
event = "error",
property = expr_id,
"Failed to convert value."
);
None
}
Err(_) => None,
}
}