diff --git a/README.md b/README.md index 8e4f1f5..b83d482 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,8 @@ RT-Thread online packages Version (latest) ---> ``` +**Enable debug log output**:开启调试日志显示,可以用于查看请求和响应的头部数据信息; + **Enable webclient GET/POST samples** :添加示例代码; **Select TLS mode** :配置开启 HTTPS 支持,选择支持的模式; diff --git a/src/webclient.c b/src/webclient.c index 4d222d0..55de69a 100644 --- a/src/webclient.c +++ b/src/webclient.c @@ -1095,6 +1095,7 @@ static int webclient_next_chunk(struct webclient_session *session) RT_ASSERT(session); + rt_memset(line, 0x00, sizeof(line)); length = webclient_read_line(session, line, sizeof(line)); if (length > 0) {