From 0a051c3e894727a27ecfcab99dd2f1096c123ff0 Mon Sep 17 00:00:00 2001 From: Ankit Prakash Date: Wed, 27 Jun 2018 14:31:09 -0600 Subject: [PATCH] send iv as query param --- modules/sovrnBidAdapter.js | 7 +++++-- test/spec/modules/sovrnBidAdapter_spec.js | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/sovrnBidAdapter.js b/modules/sovrnBidAdapter.js index 6d67288cf09..ca9df72e59e 100644 --- a/modules/sovrnBidAdapter.js +++ b/modules/sovrnBidAdapter.js @@ -42,7 +42,6 @@ export const spec = { page: loc.host + loc.pathname + loc.search + loc.hash } }; - if (iv) sovrnBidReq.iv = iv; if (bidderRequest && bidderRequest.gdprConsent) { sovrnBidReq.regs = { @@ -55,9 +54,13 @@ export const spec = { }}; } + let url = `//ap.lijit.com/rtb/bid?` + + `src=${REPO_AND_VERSION}`; + if (iv) url += `&iv=${iv}`; + return { method: 'POST', - url: `//ap.lijit.com/rtb/bid?src=${REPO_AND_VERSION}`, + url: url, data: JSON.stringify(sovrnBidReq), options: {contentType: 'text/plain'} }; diff --git a/test/spec/modules/sovrnBidAdapter_spec.js b/test/spec/modules/sovrnBidAdapter_spec.js index b19b79c7886..dd3a43a3f0c 100644 --- a/test/spec/modules/sovrnBidAdapter_spec.js +++ b/test/spec/modules/sovrnBidAdapter_spec.js @@ -81,7 +81,7 @@ describe('sovrnBidAdapter', function() { }]; const request = spec.buildRequests(ivBidRequests); - expect(request.data).to.contain('"iv":"vet"') + expect(request.url).to.contain('iv=vet') }); it('sends gdpr info if exists', () => {