From c309aa661f2280fe56272707f782ed5e99a81ba1 Mon Sep 17 00:00:00 2001 From: Kyle O'Connor Date: Mon, 10 Jun 2024 16:03:24 -0400 Subject: [PATCH] The unit test fix --- src/internal/signature.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/signature.ts b/src/internal/signature.ts index 02bcb64..79407d3 100644 --- a/src/internal/signature.ts +++ b/src/internal/signature.ts @@ -274,7 +274,7 @@ export class SignatureV4 { if (request.path) { // Ensure there is a trailing slash at the end of the URL // so that appending the path does not result in a malformed URL. - url = url.endsWith('/') ? url : url + '/' + url = url?.endsWith('/') ? url : url + '/' // Append the path to the URL url += request.path