From 481d89d7e1495f75555e10f6f0833cfb2a20d855 Mon Sep 17 00:00:00 2001
From: "Dmitriy A. Gerasimov" <dmitriy.gerasimov@demlabs.net>
Date: Tue, 16 Feb 2021 23:35:33 +0700
Subject: [PATCH] ...

---
 .../net/server/http_server/http_client/dap_http_client.c    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dap-sdk/net/server/http_server/http_client/dap_http_client.c b/dap-sdk/net/server/http_server/http_client/dap_http_client.c
index 56ca3f4f94..374bb106a8 100644
--- a/dap-sdk/net/server/http_server/http_client/dap_http_client.c
+++ b/dap-sdk/net/server/http_server/http_client/dap_http_client.c
@@ -481,9 +481,11 @@ void dap_http_client_read( dap_events_socket_t *a_esocket, void *a_arg )
                     if ( l_http_client->http->url_proc->cache == NULL &&  l_http_client->proc->headers_read_callback ) {
                         pthread_rwlock_unlock(&l_http_client->http->url_proc->cache_rwlock);
                         l_http_client->proc->headers_read_callback( l_http_client, NULL );
-                    }else
+                    }else{
                         pthread_rwlock_unlock(&l_http_client->http->url_proc->cache_rwlock);
-
+                        if(s_debug_http)
+                            log_it(L_DEBUG, "Cache is present, don't call underlaying callbacks");
+                    }
                     // If no headers callback we go to the DATA processing
                     if( l_http_client->in_content_length ) {
                         if(s_debug_http)
-- 
GitLab