From: Christian Grothoff Date: Fri, 10 Aug 2018 16:52:51 +0000 (+0200) Subject: do not warn about empty bodies X-Git-Tag: v0.11.0~314 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7328db7a405e5be7dbbee505f4e7ea8af7889c9a;p=oweals%2Fgnunet.git do not warn about empty bodies --- 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 . */ @@ -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;