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 GitHub
parent ac6e5bc277
commit 048362182d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {