Skip to content

Commit

Permalink
fix secure protocol check for beachfront video (#5318)
Browse files Browse the repository at this point in the history
Co-authored-by: John Salis <[email protected]>
  • Loading branch information
jsalis and John Salis authored Jun 7, 2020
1 parent 994dd29 commit bdaa411
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/beachfrontBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { VIDEO, BANNER } from '../src/mediaTypes.js';
import find from 'core-js-pure/features/array/find.js';
import includes from 'core-js-pure/features/array/includes.js';

const ADAPTER_VERSION = '1.9';
const ADAPTER_VERSION = '1.10';
const ADAPTER_NAME = 'BFIO_PREBID';
const OUTSTREAM = 'outstream';

Expand Down Expand Up @@ -285,7 +285,7 @@ function createVideoRequestData(bid, bidderRequest) {
mimes: DEFAULT_MIMES
}, video),
bidfloor: bidfloor,
secure: topLocation.protocol === 'https:' ? 1 : 0,
secure: topLocation.protocol.indexOf('https') === 0 ? 1 : 0,
displaymanager: ADAPTER_NAME,
displaymanagerver: ADAPTER_VERSION
}],
Expand Down

0 comments on commit bdaa411

Please sign in to comment.