fix: solve bug of nested links going to webserver root #5
3 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "serves3"
|
name = "serves3"
|
||||||
version = "1.2.0"
|
version = "1.2.0-beta.1"
|
||||||
|
|
||||||
authors = ["Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>"]
|
authors = ["Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>"]
|
||||||
description = "A very simple proxy to browse files from private S3 buckets"
|
description = "A very simple proxy to browse files from private S3 buckets"
|
||||||
|
|
|
@ -109,7 +109,7 @@ serves3
|
||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## 1.2.0
|
## 1.2.0 (unreleased)
|
||||||
|
|
||||||
* Migrate to [object_store](https://crates.io/crates/object_store). This should
|
* Migrate to [object_store](https://crates.io/crates/object_store). This should
|
||||||
allow streaming of bigger files.
|
allow streaming of bigger files.
|
||||||
|
|
|
@ -172,7 +172,7 @@ async fn file_view(
|
||||||
let folders = s3_objects.common_prefixes.into_iter().map(|dir| {
|
let folders = s3_objects.common_prefixes.into_iter().map(|dir| {
|
||||||
let dirname = dir.parts().last().unwrap();
|
let dirname = dir.parts().last().unwrap();
|
||||||
FileViewItem {
|
FileViewItem {
|
||||||
path: dirname.as_ref().into(),
|
path: format!("{}/", dirname.as_ref().to_string()),
|
||||||
size_bytes: 0,
|
size_bytes: 0,
|
||||||
size: "[DIR]".to_owned(),
|
size: "[DIR]".to_owned(),
|
||||||
last_modification: String::default(),
|
last_modification: String::default(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue