Skip to content

Commit

Permalink
only https protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
z-sunshine committed Nov 22, 2019
1 parent 3306456 commit fec9f57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions modules/newborntownWebBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import {registerBidder} from '../src/adapters/bidderFactory';
import {BANNER, NATIVE} from '../src/mediaTypes';
const BIDDER_CODE = 'newborntownWeb';

let useSSL = document.location.protocol == 'https:';
const REQUEST_URL = (useSSL ? 'https:' : 'http:') + '//us-west.solortb.com/adx/api/rtb?from=4'
const REQUEST_URL = 'https://us-west.solortb.com/adx/api/rtb?from=4'

function randomn(n) {
return parseInt((Math.random() + 1) * Math.pow(10, n - 1)) + '';
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/newborntownWebBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ describe('NewborntownWebAdapter', function() {
'impid': '1',
'price': 0.3001,
'adid': '1573540665390299172',
'nurl': 'http://us-west.solortb.com/winnotice?price=${AUCTION_PRICE}&ssp=4&req_unique_id=740016d1-175b-4c19-9744-58a59632dabe&unique_id=06b08e40-2489-439a-8f9e-6413f3dd0bc8&isbidder=1&up=bQyvVo7tgbBVW2dDXzTdBP95Mv35YqqEika0T_btI1h6xjqA8GSXQe51_2CCHQcfuwAEOgdwN8u3VgUHmCuqNPKiBmIPaYUOQBBKjJr05zeKtabKnGT7_JJKcurrXqQ5Sl804xJear_qf2-jOaKB4w',
'nurl': 'https://us-west.solortb.com/winnotice?price=${AUCTION_PRICE}&ssp=4&req_unique_id=740016d1-175b-4c19-9744-58a59632dabe&unique_id=06b08e40-2489-439a-8f9e-6413f3dd0bc8&isbidder=1&up=bQyvVo7tgbBVW2dDXzTdBP95Mv35YqqEika0T_btI1h6xjqA8GSXQe51_2CCHQcfuwAEOgdwN8u3VgUHmCuqNPKiBmIPaYUOQBBKjJr05zeKtabKnGT7_JJKcurrXqQ5Sl804xJear_qf2-jOaKB4w',
'adm': "<div id='grumi-container'></div>",
'adomain': [
'newborntown.com'
Expand Down

0 comments on commit fec9f57

Please sign in to comment.