Skip to content

Commit ee95a85

Browse files
authored
fix: Do not use + for spaces in encoding (#1062)
1 parent c417c2f commit ee95a85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/smithy-client/src/extended-encode-uri-component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
export function extendedEncodeURIComponent(str: string): string {
66
return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
77
return "%" + c.charCodeAt(0).toString(16);
8-
}).replace(/%20/g, "+");
8+
});
99
}

0 commit comments

Comments
 (0)