SeeOther instead of TemporaryRedirect
This commit is contained in:
parent
051d55a936
commit
b7f7c429de
@ -35,7 +35,7 @@ fn establish_connection() -> Result<SqliteConnection, ServerError> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn redirect_builder(target: &str) -> HttpResponse {
|
fn redirect_builder(target: &str) -> HttpResponse {
|
||||||
HttpResponse::TemporaryRedirect()
|
HttpResponse::SeeOther()
|
||||||
.set(CacheControl(vec![
|
.set(CacheControl(vec![
|
||||||
CacheDirective::NoCache,
|
CacheDirective::NoCache,
|
||||||
CacheDirective::NoStore,
|
CacheDirective::NoStore,
|
||||||
|
Loading…
Reference in New Issue
Block a user