mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Added test case for #1065
This commit is contained in:
parent
dc0481e832
commit
301faa074c
1 changed files with 6 additions and 0 deletions
|
@ -171,6 +171,12 @@ TEST(GetHeaderValueTest, RegularValue) {
|
||||||
EXPECT_STREQ("text/html", val);
|
EXPECT_STREQ("text/html", val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST(GetHeaderValueTest, RegularValueWithDifferentCase) {
|
||||||
|
Headers headers = {{"Content-Type", "text/html"}, {"Dummy", "Dummy"}};
|
||||||
|
auto val = detail::get_header_value(headers, "content-type", 0, "text/plain");
|
||||||
|
EXPECT_STREQ("text/html", val);
|
||||||
|
}
|
||||||
|
|
||||||
TEST(GetHeaderValueTest, SetContent) {
|
TEST(GetHeaderValueTest, SetContent) {
|
||||||
Response res;
|
Response res;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue