Skip to content

Commit

Permalink
Fix: Rename "watermark-cache" query param to "watermark_content" (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Press authored Dec 19, 2017
1 parent 00fd0cb commit a8639a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/viewers/media/DashViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class DashViewer extends VideoBaseViewer {
request.uris = request.uris.map((uri) => {
let newUri = this.createContentUrlWithAuthParams(uri, asset);
if (asset !== MANIFEST && this.options.file.watermark_info.is_watermarked) {
newUri = appendQueryParams(newUri, { 'watermark-cache': this.watermarkCacheBust });
newUri = appendQueryParams(newUri, { watermark_content: this.watermarkCacheBust });
}
return newUri;
});
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/media/__tests__/DashViewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ describe('lib/viewers/media/DashViewer', () => {
dash.requestFilter('', stubs.req);

expect(stubs.createUrl).to.be.calledOnce;
expect(stubs.req.uris).to.deep.equal(['www.authed.com/?foo=bar&watermark-cache=123']);
expect(stubs.req.uris).to.deep.equal(['www.authed.com/?foo=bar&watermark_content=123']);
});
});

Expand Down

0 comments on commit a8639a9

Please sign in to comment.