From d1c377b06a386221af09db38140de08c74e2bc74 Mon Sep 17 00:00:00 2001 From: Serhii Nahornyi Date: Mon, 2 Aug 2021 14:00:16 +0300 Subject: [PATCH] Fixes after review --- .../server/auction/requestfactory/AmpRequestFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/prebid/server/auction/requestfactory/AmpRequestFactory.java b/src/main/java/org/prebid/server/auction/requestfactory/AmpRequestFactory.java index 526c79d017a..390312577fa 100644 --- a/src/main/java/org/prebid/server/auction/requestfactory/AmpRequestFactory.java +++ b/src/main/java/org/prebid/server/auction/requestfactory/AmpRequestFactory.java @@ -276,9 +276,9 @@ private static String attlConsentFromQueryStringParams(HttpRequestContext httpRe private static Integer gdprFromQueryStringParams(HttpRequestContext httpRequest) { final String gdprAppliesParam = httpRequest.getQueryParams().get(GDPR_APPLIES_PARAM); - if ("true".equals(gdprAppliesParam)) { + if (StringUtils.equals(gdprAppliesParam, "true")) { return 1; - } else if ("false".equals(gdprAppliesParam)) { + } else if (StringUtils.equals(gdprAppliesParam, "false")) { return 0; }