aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/curl/curl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/curl/curl.c b/src/curl/curl.c
index ee4b568df..bb935d183 100644
--- a/src/curl/curl.c
+++ b/src/curl/curl.c
@@ -679,10 +679,11 @@ GNUNET_CURL_download_get_result_ (struct GNUNET_CURL_DownloadBuffer *db,
679 /* No content type or explicitly not JSON, refuse to parse 679 /* No content type or explicitly not JSON, refuse to parse
680 (but keep response code) */ 680 (but keep response code) */
681 if (0 != db->buf_size) 681 if (0 != db->buf_size)
682 {
682 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 683 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
683 "Did NOT detect response `%.*s' as JSON\n", 684 "Expected content type was `application/json', got `%s'\n",
684 (int) db->buf_size, 685 ct);
685 (const char *) db->buf); 686 }
686 return NULL; 687 return NULL;
687 } 688 }
688 if (MHD_HTTP_NO_CONTENT == *response_code) 689 if (MHD_HTTP_NO_CONTENT == *response_code)