using https for auction house link #78

Merged
reynisson merged 3 commits from dev into main 2021-11-20 21:54:41 +00:00
Showing only changes of commit 3b205d80a5 - Show all commits

View File

@ -57,9 +57,10 @@ public class AuctionWonEventHttpAdapter implements AuctionWonEventPort {
new Task.ServiceProvider("TODO")
);
var bidderAuctionHouseUri = event.getWinningBid().getBidderAuctionHouseUri().getValue().toString();
String body = TaskJsonRepresentation.serialize(task);
LOGGER.info(body);
var postURI = URI.create(auction.get().getAuctionHouseUri().getValue().toString() + "/taskwinner");
var postURI = URI.create(bidderAuctionHouseUri + "/taskwinner");
HttpRequest postRequest = HttpRequest.newBuilder()
.uri(postURI)
.header("Content-Type", TaskJsonRepresentation.MEDIA_TYPE)