From 9b7b407c31e9d903591b8c81df9fa82fba60b410 Mon Sep 17 00:00:00 2001 From: Jeremy Hernandez Date: Tue, 9 Apr 2019 17:59:56 +0200 Subject: [PATCH] feat(adyoulikeAdapter): use only https protocol (#3692) --- modules/adyoulikeBidAdapter.js | 2 +- test/spec/modules/adyoulikeBidAdapter_spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/adyoulikeBidAdapter.js b/modules/adyoulikeBidAdapter.js index 4bca9b58fe5..4624bdba8b5 100644 --- a/modules/adyoulikeBidAdapter.js +++ b/modules/adyoulikeBidAdapter.js @@ -132,7 +132,7 @@ function getPageRefreshed() { function createEndpoint(bidRequests, bidderRequest) { let host = getHostname(bidRequests); return format({ - protocol: (document.location.protocol === 'https:') ? 'https' : 'http', + protocol: 'https', host: `${DEFAULT_DC}${host}.omnitagjs.com`, pathname: '/hb-api/prebid/v1', search: createEndpointQS(bidderRequest) diff --git a/test/spec/modules/adyoulikeBidAdapter_spec.js b/test/spec/modules/adyoulikeBidAdapter_spec.js index 26898d3f57e..3f28acaaf97 100644 --- a/test/spec/modules/adyoulikeBidAdapter_spec.js +++ b/test/spec/modules/adyoulikeBidAdapter_spec.js @@ -134,7 +134,7 @@ describe('Adyoulike Adapter', function () { ]; const adapter = newBidder(spec); - let getEndpoint = (dc = defaultDC) => `http://${dc}.omnitagjs.com/hb-api/prebid`; + let getEndpoint = (dc = defaultDC) => `https://${dc}.omnitagjs.com/hb-api/prebid`; describe('inherited functions', function () { it('exists and is a function', function () {