Skip to content

Commit

Permalink
chore(cloudfront-signer): add support for WebSockets (#5827)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkdynamic authored and trivikr committed Sep 13, 2024
1 parent c095306 commit e01c9b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cloudfront-signer/src/sign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ function getResource(url: URL): string {
switch (url.protocol) {
case "http:":
case "https:":
case "ws:":
case "wss:":
return url.toString();
case "rtmp:":
return url.pathname.replace(/^\//, "") + url.search + url.hash;
Expand Down

0 comments on commit e01c9b0

Please sign in to comment.