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 e75ba972b5564..9cb12581bdee3 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 @@ -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