mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +00:00
Join identifier onto public_endpoint, rather than overwriting the existing path
This commit is contained in:
parent
9ceb26bb5c
commit
708c25f20a
1 changed files with 3 additions and 4 deletions
|
@ -403,10 +403,9 @@ impl Store for ObjectStore {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn public_url(&self, identifier: &Arc<str>) -> Option<url::Url> {
|
fn public_url(&self, identifier: &Arc<str>) -> Option<url::Url> {
|
||||||
self.public_endpoint.clone().map(|mut endpoint| {
|
self.public_endpoint
|
||||||
endpoint.set_path(identifier.as_ref());
|
.as_ref()
|
||||||
endpoint
|
.and_then(|endpoint| endpoint.join(identifier.as_ref()).ok())
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tracing::instrument(skip(self))]
|
#[tracing::instrument(skip(self))]
|
||||||
|
|
Loading…
Reference in a new issue