From babad2cea9c71e1d580cd3ee75752210dc788996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Murat=20=C3=87orlu?= <127687+muratcorlu@users.noreply.github.com> Date: Thu, 1 Feb 2024 17:50:39 +0100 Subject: [PATCH] fix: url returns double slashes Sometimes I have double slashes after host address. I think this will fix that issue. --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b21c277..0360416 100644 --- a/src/index.ts +++ b/src/index.ts @@ -166,7 +166,7 @@ class S3Storage extends StorageBase { } await this.s3().putObject(config) - return `${this.host}/${fileName}` + return `${this.host}/${stripLeadingSlash(fileName)}` } serve(): Handler {