diff --git a/http_server/http_client/dap_http_client.c b/http_server/http_client/dap_http_client.c
index 9c9c177f0f615b973e57cf2e6404bde947e7b7fb..cfe6f25bdcad244dd1d970590b8a314499d579b5 100644
--- a/http_server/http_client/dap_http_client.c
+++ b/http_server/http_client/dap_http_client.c
@@ -293,10 +293,11 @@ cnt:switch(cl_ht->state_read){
 
                     if(cl_ht->proc->headers_read_callback)
                         cl_ht->proc->headers_read_callback(cl_ht,NULL);
+
                      // If no headers callback we go to the DATA processing
-                    if(cl_ht->in_content_length ){
+                    if(cl_ht->in_content_length) {
                         cl_ht->state_read=DAP_HTTP_CLIENT_STATE_DATA;
-                    }else{
+                    } else {
                         //log_it
                         //cl_ht->state_read=DAP_HTTP_CLIENT_STATE_NONE;
                         //cl_ht->client->ready_to_read=t;
@@ -310,14 +311,16 @@ cnt:switch(cl_ht->state_read){
         case DAP_HTTP_CLIENT_STATE_DATA:{//Read the data
          //   log_it(L_WARNINGNG, "DBG_#002 [%s] [%s]",             cl_ht->in_query_string, cl_ht->url_path);
 
-            int read_bytes=0;
+            size_t read_bytes = 0;
             if(cl_ht->proc->data_read_callback){
                 //while(cl_ht->client->buf_in_size){
                     cl_ht->proc->data_read_callback(cl_ht,&read_bytes);
                     dap_client_remote_shrink_buf_in(cl,read_bytes);
                 //}
-            }else
+            }else {
+                log_it(L_WARNING, "data_read callback is NULL in DAP_HTTP_CLIENT_STATE_DATA");
                 cl->buf_in_size=0;
+            }
         } break;
         case DAP_HTTP_CLIENT_STATE_NONE:{
                 cl->buf_in_size=0;
diff --git a/http_server/http_client/dap_http_client.h b/http_server/http_client/dap_http_client.h
index 33acaf2cbf1506a4f1aeae94dc328c766f14294c..9e81cabb8df835f11f71c3fc840e538cddf740ea 100644
--- a/http_server/http_client/dap_http_client.h
+++ b/http_server/http_client/dap_http_client.h
@@ -64,7 +64,6 @@ typedef struct dap_http_client
     time_t out_last_modified;
     bool out_connection_close;
 
-
     dap_client_remote_t * client;
     struct dap_http * http;