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; }