More debug

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
main
Jianhui Zhao 2017-11-26 23:55:42 +08:00
parent 34d052d4c0
commit 3f6d941eba
1 changed files with 3 additions and 0 deletions

View File

@ -92,9 +92,12 @@ static int on_url(http_parser *parser, const char *at, size_t len)
con->req.path.at = at + url.field_data[UF_PATH].off; con->req.path.at = at + url.field_data[UF_PATH].off;
con->req.path.len = url.field_data[UF_PATH].len; con->req.path.len = url.field_data[UF_PATH].len;
uh_log_debug("Path:[%.*s]", (int)con->req.path.len, con->req.path.at);
if (url.field_set & (1 << UF_QUERY)) { if (url.field_set & (1 << UF_QUERY)) {
con->req.query.at = at + url.field_data[UF_QUERY].off; con->req.query.at = at + url.field_data[UF_QUERY].off;
con->req.query.len = url.field_data[UF_QUERY].len; con->req.query.len = url.field_data[UF_QUERY].len;
uh_log_debug("Query:[%.*s]", (int)con->req.query.len, con->req.query.at);
} }
return 0; return 0;