plugins/test.c: Fix usage of get_path
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>main
parent
28c7e74aa8
commit
d4b34049bc
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue