Add mbtk_source git commit info
Change-Id: I9867613657db269bba81d28c4b3712062ae41bdd
diff --git a/mbtk/libmbtk_http/mbtk_http.c b/mbtk/libmbtk_http/mbtk_http.c
index a50b8e5..f83ae35 100755
--- a/mbtk/libmbtk_http/mbtk_http.c
+++ b/mbtk/libmbtk_http/mbtk_http.c
@@ -713,14 +713,14 @@
return -1;
}
-
+
if(read_count + read_len >= session->rsp.content_length) // Read data complete.
{
if(http_handles[session->handle_id].data_cb)
{
http_handles[session->handle_id].data_cb(session->id,
MBTK_HTTP_DATA_CONTENT,read_buf,session->rsp.content_length - read_count);
-
+
http_handles[session->handle_id].data_cb(session->id,
MBTK_HTTP_DATA_COMPLETE,NULL,0);
}
@@ -1259,7 +1259,7 @@
LOGI("HTTP request start.");
LOGI("host:%s, port:%d, uri:%s",session->host,session->port,session->uri);
- LOGI("is_ssl:%d,ingnore_cert:%d, version:%d, option:%d, content_len:%d",session->is_ssl,
+ LOGI("is_ssl:%d,ingnore_cert:%d, version:%d, option:%d, content_len:%d",session->is_ssl,
session->ingnore_cert, session->version,session->option,session->req.content_len);
int sock_fd = mbtk_http_open(session->is_ssl,session->ingnore_cert,session->host,session->port);
@@ -1389,4 +1389,8 @@
return http_handles[handle_id].session[session_id];
}
+void mbtk_http_lib_info_print()
+{
+ MBTK_SOURCE_INFO_PRINT("mbtk_http_lib");
+}