Skip to content

Commit

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

Reviewed By: hanidamlaj

Differential Revision: D68519544

fbshipit-source-id: 09e34684c9721af4ac4274455d6e65521a40463b
  • Loading branch information
Joanna Jo authored and facebook-github-bot committed Jan 23, 2025
1 parent ce88fe6 commit 04ef10b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -68,6 +68,8 @@ class HTTPDownstreamTest : public testing::Test {
rawCodec_ = codec.get();
if (dynamic_cast<HTTP1xCodec*>(rawCodec_) != nullptr) {
dynamic_cast<HTTP1xCodec*>(rawCodec_)->setStrictValidation(true);
} else if (dynamic_cast<HTTP2Codec*>(rawCodec_) != nullptr) {
dynamic_cast<HTTP2Codec*>(rawCodec_)->setStrictValidation(true);
}

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

0 comments on commit 04ef10b

Please sign in to comment.