gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: do not warn about empty bod


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: do not warn about empty bodies
Date: Fri, 10 Aug 2018 18:53:01 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 7328db7a4 do not warn about empty bodies
7328db7a4 is described below

commit 7328db7a405e5be7dbbee505f4e7ea8af7889c9a
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Aug 10 18:52:51 2018 +0200

    do not warn about empty bodies
---
 src/curl/curl.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/curl/curl.c b/src/curl/curl.c
index cdd39ab8e..a0a027995 100644
--- a/src/curl/curl.c
+++ b/src/curl/curl.c
@@ -11,7 +11,7 @@
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Affero General Public License for more details.
- 
+
   You should have received a copy of the GNU Affero General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -411,8 +411,9 @@ download_get_result (struct DownloadBuffer *db,
       GNUNET_break (0);
       *response_code = 0;
     }
-    GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
-                "Did NOT detect response as JSON\n");
+    if (0 != db->buf_size)
+      GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+                  "Did NOT detect response as JSON\n");
     return NULL;
   }
   json = NULL;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]