plugins/test.c: Fix usage of get_path

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
main
Jianhui Zhao 2020-10-06 17:57:51 +08:00
parent 28c7e74aa8
commit d4b34049bc
1 changed files with 3 additions and 1 deletions

View File

@ -26,8 +26,10 @@
static void test_handler(struct uh_connection *conn)
{
struct uh_str path = conn->get_path(conn);
conn->send_head(conn, 200, -1, NULL);
conn->chunk_printf(conn, "Path: %s\n", conn->get_path(conn));
conn->chunk_printf(conn, "Path: %.*s\n", path.len, path.p);
conn->chunk_end(conn);
}