From 2dd783c30f85222c4eb19418d2eae873723d9feb Mon Sep 17 00:00:00 2001 From: Jamie & Lewis Date: Thu, 31 Jan 2019 12:25:50 +0000 Subject: [PATCH] fix(unruly): avoid sending options request --- modules/unrulyBidAdapter.js | 2 +- test/spec/modules/unrulyBidAdapter_spec.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/unrulyBidAdapter.js b/modules/unrulyBidAdapter.js index 8aa2dba2007..389a7e6aff6 100644 --- a/modules/unrulyBidAdapter.js +++ b/modules/unrulyBidAdapter.js @@ -80,7 +80,7 @@ export const adapter = { bidRequests: validBidRequests, bidderRequest }; - const options = { contentType: 'application/json' }; + const options = { contentType: 'text/plain' }; return { url, diff --git a/test/spec/modules/unrulyBidAdapter_spec.js b/test/spec/modules/unrulyBidAdapter_spec.js index 59f919ed5f5..0be21a66312 100644 --- a/test/spec/modules/unrulyBidAdapter_spec.js +++ b/test/spec/modules/unrulyBidAdapter_spec.js @@ -107,10 +107,10 @@ describe('UnrulyAdapter', function () { const mockBidRequests = ['mockBid']; expect(adapter.buildRequests(mockBidRequests).method).to.equal('POST'); }); - it('should ensure contentType is `application/json`', function () { + it('should ensure contentType is `text/plain`', function () { const mockBidRequests = ['mockBid']; expect(adapter.buildRequests(mockBidRequests).options).to.deep.equal({ - contentType: 'application/json' + contentType: 'text/plain' }); }); it('should return a server request with valid payload', function () {