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