Skip to content

Commit 0e8d66d

Browse files
authored
Add support for WebSockets to CloudFront signer (#5827)
1 parent c095306 commit 0e8d66d

File tree

1 file changed

+2
-0
lines changed
  • packages/cloudfront-signer/src

1 file changed

+2
-0
lines changed

packages/cloudfront-signer/src/sign.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ function getResource(url: URL): string {
240240
switch (url.protocol) {
241241
case "http:":
242242
case "https:":
243+
case "ws:":
244+
case "wss:":
243245
return url.toString();
244246
case "rtmp:":
245247
return url.pathname.replace(/^\//, "") + url.search + url.hash;

0 commit comments

Comments
 (0)