mirror of
https://github.com/laosb/ghos3.git
synced 2025-04-30 15:41:08 +00:00
fix: url returns double slashes
Sometimes I have double slashes after host address. I think this will fix that issue.
This commit is contained in:
parent
ac6e5bc277
commit
babad2cea9
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ class S3Storage extends StorageBase {
|
|||
}
|
||||
await this.s3().putObject(config)
|
||||
|
||||
return `${this.host}/${fileName}`
|
||||
return `${this.host}/${stripLeadingSlash(fileName)}`
|
||||
}
|
||||
|
||||
serve(): Handler {
|
||||
|
|
Loading…
Add table
Reference in a new issue