Skip to content

Commit

Permalink
Modify TestCookieToken ExtractorTest to cover quoted cookie values
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Patil <theshubhamp@gmail.com>
  • Loading branch information
theshubhamp committed Aug 16, 2021
1 parent 3d37b65 commit 09eaa9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/extensions/filters/http/jwt_authn/extractor_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ TEST_F(ExtractorTest, TestCustomParamToken) {
TEST_F(ExtractorTest, TestCookieToken) {
auto headers = TestRequestHeaderMapImpl{
{"cookie", "token-cookie=token-cookie-value; token-cookie-2=token-cookie-value-2"},
{"cookie", "token-cookie-3=token-cookie-value-3"}};
{"cookie", "token-cookie-3=\"token-cookie-value-3\""}};
auto tokens = extractor_->extract(headers);
EXPECT_EQ(tokens.size(), 3);

Expand Down

0 comments on commit 09eaa9b

Please sign in to comment.