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:
Murat Çorlu 2024-02-01 17:50:39 +01:00 committed by Shibo Lyu
parent ac6e5bc277
commit babad2cea9

View file

@ -166,7 +166,7 @@ class S3Storage extends StorageBase {
}
await this.s3().putObject(config)
return `${this.host}/${fileName}`
return `${this.host}/${stripLeadingSlash(fileName)}`
}
serve(): Handler {