Skip to content

Commit 139e892

Browse files
committed
Fix mistake in Redirect::new
1 parent 0fc6720 commit 139e892

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/redirect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl<T: AsRef<str>> Redirect<T> {
4949
/// Uses status code 302 Found.
5050
pub fn new(location: T) -> Self {
5151
Self {
52-
status: StatusCode::SeeOther,
52+
status: StatusCode::Found,
5353
location,
5454
}
5555
}

0 commit comments

Comments
 (0)