diff --git a/proxygen/lib/http/session/test/HTTPDownstreamSessionTest.cpp b/proxygen/lib/http/session/test/HTTPDownstreamSessionTest.cpp index e75ba972b5..9cb12581bd 100644 --- a/proxygen/lib/http/session/test/HTTPDownstreamSessionTest.cpp +++ b/proxygen/lib/http/session/test/HTTPDownstreamSessionTest.cpp @@ -66,6 +66,9 @@ class HTTPDownstreamTest : public testing::Test { HTTPTransaction::setEgressBufferLimit(65536); auto codec = makeServerCodec(C::version); rawCodec_ = codec.get(); + if (dynamic_cast(rawCodec_) != nullptr) { + dynamic_cast(rawCodec_)->setStrictValidation(true); + } // If the codec is H2, getHeaderIndexingStrategy will be called when setting // up the codec