Skip to content

Commit e01c9b0

Browse files
mkdynamictrivikr
authored andcommitted
chore(cloudfront-signer): add support for WebSockets (#5827)
1 parent c095306 commit e01c9b0

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)