diff --git a/proxygen/lib/http/session/test/HTTPUpstreamSessionTest.cpp b/proxygen/lib/http/session/test/HTTPUpstreamSessionTest.cpp index d8c0830a7b..e2d9306355 100644 --- a/proxygen/lib/http/session/test/HTTPUpstreamSessionTest.cpp +++ b/proxygen/lib/http/session/test/HTTPUpstreamSessionTest.cpp @@ -227,6 +227,14 @@ class HTTPUpstreamTest param = codec->getDefaultWindowSize(); } } + + auto rawCodec = codec.get(); + if (dynamic_cast(rawCodec) != nullptr) { + dynamic_cast(rawCodec)->setStrictValidation(true); + } else if (dynamic_cast(rawCodec) != nullptr) { + dynamic_cast(rawCodec)->setStrictValidation(true); + } + httpSession_ = new HTTPUpstreamSession( transactionTimeouts_.get(), std::move(folly::AsyncTransport::UniquePtr(transport_)),