Signed-off-by: chenyong <1521761801@qq.com>
@ -1465,10 +1465,12 @@ int webclient_request(const char *URI, const char *header, const char *post_data
goto __exit;
}
if (header != RT_NULL)
{
strncpy(session->header->buffer, header, strlen(header));
__exit:
if (session)
@ -87,7 +87,7 @@ int webclient_get_file(const char* URI, const char* filename)
write(fd, ptr, length);
total_length += length;
rt_kprintf(">");
LOG_RAW(">");
else
@ -107,7 +107,7 @@ int webclient_get_file(const char* URI, const char* filename)