Skip to content

Commit 789a9d9

Browse files
committed
Multiple Bidder Codes
1 parent 17ff599 commit 789a9d9

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/main/java/org/prebid/server/auction/BidResponseCreator.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,11 @@ private static Map<String, List<ExtHttpCall>> toExtHttpCalls(List<BidderResponse
11231123
.filter(bidderResponse -> CollectionUtils.isNotEmpty(bidderResponse.getSeatBid().getHttpCalls()))
11241124
.collect(Collectors.toMap(
11251125
BidderResponseInfo::getSeat,
1126-
bidderResponse -> bidderResponse.getSeatBid().getHttpCalls()));
1126+
bidderResponse -> new ArrayList<>(bidderResponse.getSeatBid().getHttpCalls()),
1127+
(httpCalls1, httpCalls2) -> {
1128+
httpCalls1.addAll(httpCalls2);
1129+
return httpCalls1;
1130+
}));
11271131

11281132
final DebugHttpCall httpCall = cacheResult.getHttpCall();
11291133
final ExtHttpCall cacheExtHttpCall = httpCall != null ? toExtHttpCall(httpCall) : null;
@@ -1594,11 +1598,9 @@ private Bid toBid(BidInfo bidInfo,
15941598
final ObjectNode updatedBidExt =
15951599
originalBidExt != null ? originalBidExt.deepCopy() : mapper.mapper().createObjectNode();
15961600
updatedBidExt.set(PREBID_EXT, mapper.mapper().valueToTree(updatedExtBidPrebid));
1597-
15981601
final Integer ttl = Optional.ofNullable(cacheInfo)
15991602
.map(info -> ObjectUtils.max(cacheInfo.getTtl(), cacheInfo.getVideoTtl()))
16001603
.orElseGet(() -> ObjectUtils.max(bidInfo.getTtl(), bidInfo.getVastTtl()));
1601-
16021604
return bid.toBuilder()
16031605
.ext(updatedBidExt)
16041606
.exp(ttl)

0 commit comments

Comments
 (0)