Skip to content

Commit

Permalink
Request Wrapper first pass (prebid#1784)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhjort authored and jizeyopera committed Oct 13, 2021
1 parent 86390ac commit 62d1934
Show file tree
Hide file tree
Showing 23 changed files with 1,185 additions and 351 deletions.
2 changes: 1 addition & 1 deletion endpoints/openrtb2/amp_auction.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func (deps *endpointDeps) parseAmpRequest(httpRequest *http.Request) (req *openr

// At this point, we should have a valid request that definitely has Targeting and Cache turned on

e = deps.validateRequest(req)
e = deps.validateRequest(&openrtb_ext.RequestWrapper{BidRequest: req})
errs = append(errs, e...)
return
}
Expand Down
1 change: 1 addition & 0 deletions endpoints/openrtb2/amp_auction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func TestGoodAmpRequests(t *testing.T) {

var response AmpResponse
if err := json.Unmarshal(recorder.Body.Bytes(), &response); err != nil {
t.Errorf("AMP response was: %s", recorder.Body.Bytes())
t.Fatalf("Error unmarshalling response: %s", err.Error())
}

Expand Down
Loading

0 comments on commit 62d1934

Please sign in to comment.