diff --git a/modules/mediaforceBidAdapter.js b/modules/mediaforceBidAdapter.js index 7e29bb519b5..e03423f36ac 100644 --- a/modules/mediaforceBidAdapter.js +++ b/modules/mediaforceBidAdapter.js @@ -128,7 +128,7 @@ export const spec = { let impObj = { id: bid.bidId, tagid: tagid, - secure: window.location.protocol === 'https' ? 1 : 0, + secure: window.location.protocol === 'https:' ? 1 : 0, bidfloor: bidfloor, ext: { mediaforce: { diff --git a/test/spec/modules/mediaforceBidAdapter_spec.js b/test/spec/modules/mediaforceBidAdapter_spec.js index 0b3271da770..24326afe5c0 100644 --- a/test/spec/modules/mediaforceBidAdapter_spec.js +++ b/test/spec/modules/mediaforceBidAdapter_spec.js @@ -142,7 +142,7 @@ describe('mediaforce bid adapter', function () { const requestUrl = `${baseUrl}/header_bid`; const dnt = utils.getDNT() ? 1 : 0; - const secure = window.location.protocol === 'https' ? 1 : 0; + const secure = window.location.protocol === 'https:' ? 1 : 0; const pageUrl = window.location.href; const timeout = 1500;