We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56f419e commit b786ac7Copy full SHA for b786ac7
packages/cloudfront-signer/src/sign.ts
@@ -259,7 +259,8 @@ function getResource(urlString: string): string {
259
return urlString;
260
case "rtmp:":
261
const url = new URL(urlString);
262
- return url.pathname.replace(/^\//, "") + url.search + url.hash;
+ const origin = `${protocol}//${url.hostname}`;
263
+ return urlString.substring(origin.length).replace(/(?::\d+)?\//, "");
264
default:
265
throw new Error("Invalid URI scheme. Scheme must be one of http, https, or rtmp");
266
}
0 commit comments