mirror of https://github.com/fafhrd91/actix-web
Rename `with_permanent_redirect_directory` to `with_permanent_redirect` in `Files` service
This commit is contained in:
parent
6d29fe7801
commit
b72e1a8410
|
|
@ -150,7 +150,7 @@ impl Files {
|
|||
/// Redirect with permanent redirect status code
|
||||
///
|
||||
/// By default redirect with temporary redirect status code
|
||||
pub fn with_permanent_redirect_directory(mut self) -> Self {
|
||||
pub fn with_permanent_redirect(mut self) -> Self {
|
||||
self.with_permanent_redirect = true;
|
||||
self
|
||||
}
|
||||
|
|
|
|||
|
|
@ -744,7 +744,7 @@ mod tests {
|
|||
Files::new("/", ".")
|
||||
.index_file("test.png")
|
||||
.redirect_to_slash_directory()
|
||||
.with_permanent_redirect_directory(),
|
||||
.with_permanent_redirect(),
|
||||
),
|
||||
)
|
||||
.await;
|
||||
|
|
|
|||
Loading…
Reference in New Issue