Skip to content
This repository was archived by the owner on Dec 22, 2022. It is now read-only.

Commit 2b9adc5

Browse files
committed
analytics.AmpObjectにRequestHeaderを追加
1 parent e2186fd commit 2b9adc5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

analytics/core.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ type AmpObject struct {
4343
Request *openrtb.BidRequest
4444
AuctionResponse *openrtb.BidResponse
4545
AmpTargetingValues map[string]string
46+
RequestHeader map[string][]string
4647
Origin string
4748
StartTime time.Time
4849
}

endpoints/openrtb2/amp_auction.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ func (deps *endpointDeps) AmpAuction(w http.ResponseWriter, r *http.Request, _ h
9696
start := time.Now()
9797

9898
ao := analytics.AmpObject{
99-
Status: http.StatusOK,
100-
Errors: make([]error, 0),
101-
StartTime: start,
99+
Status: http.StatusOK,
100+
Errors: make([]error, 0),
101+
StartTime: start,
102+
RequestHeader: r.Header,
102103
}
103104

104105
// Set this as an AMP request in Metrics.

0 commit comments

Comments
 (0)