OAuth: redirect using a 301 instead of a 307 code
This commit is contained in:
@@ -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()))
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user