Skip to content

Commit

Permalink
Enable strict validation on HTTP1xCodec for HTTPDownstreamSession tests
Browse files Browse the repository at this point in the history
Summary: Default to strict validation on HTTP1xCodec for HTTPDownstreamSession unit tests.

Reviewed By: afrind

Differential Revision: D68506175

fbshipit-source-id: ee7e22b97442620309b2f7e8a1213f1260a4e300
  • Loading branch information
Joanna Jo authored and facebook-github-bot committed Jan 22, 2025
1 parent cd975cf commit 426f638
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ class HTTPDownstreamTest : public testing::Test {
HTTPTransaction::setEgressBufferLimit(65536);
auto codec = makeServerCodec<typename C::Codec>(C::version);
rawCodec_ = codec.get();
if (dynamic_cast<HTTP1xCodec*>(rawCodec_) != nullptr) {
dynamic_cast<HTTP1xCodec*>(rawCodec_)->setStrictValidation(true);
}

// If the codec is H2, getHeaderIndexingStrategy will be called when setting
// up the codec
Expand Down

0 comments on commit 426f638

Please sign in to comment.