Skip to content

Commit

Permalink
feat(adyoulikeAdapter): use only https protocol (#3692)
Browse files Browse the repository at this point in the history
  • Loading branch information
j343my authored and robertrmartinez committed Apr 9, 2019
1 parent d877177 commit 9b7b407
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/adyoulikeBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/adyoulikeBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 9b7b407

Please sign in to comment.