fix STTx test

This commit is contained in:
Richard Holland
2023-01-13 12:34:28 +00:00
parent e555b3e49d
commit 78f14c07e7

View File

@@ -1564,7 +1564,7 @@ public:
}
catch (std::exception const& ex)
{
BEAST_EXPECT(strcmp(ex.what(), "Unknown field") == 0);
BEAST_EXPECT(strncmp(ex.what(), "Unknown field", 7) == 0);
}
try
@@ -1575,7 +1575,7 @@ public:
}
catch (std::exception const& ex)
{
BEAST_EXPECT(strcmp(ex.what(), "Unknown field") == 0);
BEAST_EXPECT(strncmp(ex.what(), "Unknown field", 7) == 0);
}
}