summaryrefslogtreecommitdiff
path: root/crates/jmap/src/auth/oauth
diff options
context:
space:
mode:
authorMauro D <mauro@stalw.art>2024-01-21 08:03:21 -0300
committerMauro D <mauro@stalw.art>2024-01-21 08:03:21 -0300
commit9f257610141f4a14d6f33ab45fa418f71ca1a83e (patch)
tree4341ddaa3bc739e9169ea9cd4ba71e73f628657d /crates/jmap/src/auth/oauth
parentd7d27063d8c2bf3f72dd0df418186538121bc480 (diff)
OAuth: redirect using a 301 instead of a 307 code
Diffstat (limited to 'crates/jmap/src/auth/oauth')
-rw-r--r--crates/jmap/src/auth/oauth/user_code.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/jmap/src/auth/oauth/user_code.rs b/crates/jmap/src/auth/oauth/user_code.rs
index 9403ecc6..d18912e2 100644
--- a/crates/jmap/src/auth/oauth/user_code.rs
+++ b/crates/jmap/src/auth/oauth/user_code.rs
@@ -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()))