Skip to content

Commit

Permalink
The unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KOConchobhair committed Jun 10, 2024
1 parent da5d999 commit c309aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c309aa6

Please sign in to comment.