From 7e3a9cf8159c1dd0885cb29fd4996afacb76b8b3 Mon Sep 17 00:00:00 2001 From: AlexBVolcy Date: Thu, 7 Sep 2023 14:47:47 -0700 Subject: [PATCH] Minor tweak --- endpoints/setuid.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/endpoints/setuid.go b/endpoints/setuid.go index d223ae913a5..e80a6b2ba76 100644 --- a/endpoints/setuid.go +++ b/endpoints/setuid.go @@ -126,7 +126,9 @@ func NewSetUIDEndpoint(cfg *config.Configuration, syncersByBidder map[string]use case http.StatusUnavailableForLegalReasons: metricValue = metrics.SetUidGDPRHostCookieBlocked } - handleBadStatus(w, status, metricValue, errors.New(body), metricsEngine, &so) + handleBadStatus(w, status, metricValue, nil, metricsEngine, &so) + so.Errors = []error{errors.New(body)} + w.Write([]byte(body)) return }