Skip to content

Commit

Permalink
plugins/test.c: Fix usage of get_path
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Oct 6, 2020
1 parent 28c7e74 commit d4b3404
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit d4b3404

Please sign in to comment.