mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 22:49:21 +02:00
Use StaticFile default handler when file is inaccessible (#357)
* Use Staticfile default handler on all error paths * Return an error from StaticFiles::new() if directory doesn't exist
This commit is contained in:
@ -49,6 +49,10 @@
|
||||
|
||||
* `HttpRequest::cookies()` returns `Ref<Vec<Cookie<'static>>>`
|
||||
|
||||
* `StaticFiles::new()` returns `Result<StaticFiles<S>, Error>` instead of `StaticFiles<S>`
|
||||
|
||||
* `StaticFiles` uses the default handler if the file does not exist
|
||||
|
||||
|
||||
### Removed
|
||||
|
||||
|
Reference in New Issue
Block a user