diff --git a/third-party/proxygen/src/proxygen/lib/http/session/test/HTTPDownstreamSessionTest.cpp b/third-party/proxygen/src/proxygen/lib/http/session/test/HTTPDownstreamSessionTest.cpp index 9cb12581bdee32..73e06d7eb11487 100644 --- a/third-party/proxygen/src/proxygen/lib/http/session/test/HTTPDownstreamSessionTest.cpp +++ b/third-party/proxygen/src/proxygen/lib/http/session/test/HTTPDownstreamSessionTest.cpp @@ -68,6 +68,8 @@ class HTTPDownstreamTest : public testing::Test { rawCodec_ = codec.get(); if (dynamic_cast(rawCodec_) != nullptr) { dynamic_cast(rawCodec_)->setStrictValidation(true); + } else if (dynamic_cast(rawCodec_) != nullptr) { + dynamic_cast(rawCodec_)->setStrictValidation(true); } // If the codec is H2, getHeaderIndexingStrategy will be called when setting