Commit 8c90e531 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

src: Update doc

parent af960f19
......@@ -518,7 +518,8 @@ void test_http2_path_join(void) {
sizeof(rel) - 1, nullptr, 0));
}
{
// rel is relative
// rel is relative and base ends without /, which means it refers
// to file.
const char base[] = "/alpha";
const char rel[] = "bravo/charlie";
CU_ASSERT("/bravo/charlie" ==
......@@ -594,7 +595,7 @@ void test_http2_path_join(void) {
sizeof(rel) - 1, nullptr, 0));
}
{
// '.' is ignored
// trailing '.' is ignored
const char base[] = "/";
const char rel[] = "charlie/.";
CU_ASSERT("/charlie/" == http2::path_join(base, sizeof(base) - 1, nullptr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment