diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-09-22 11:58:58 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-09-22 11:59:03 +0200 |
commit | faa06e9cdfe5777380f7d1520599952d63ecd650 (patch) | |
tree | ae12da975ff1c3a0e4f7c19c495c341ef753291d /src/curl/curl.c | |
parent | 9c8d9a406f119698aa5a7ba7df8ba396828550f7 (diff) | |
download | gnunet-faa06e9cdfe5777380f7d1520599952d63ecd650.tar.gz gnunet-faa06e9cdfe5777380f7d1520599952d63ecd650.zip |
simplify error message (#7897)
Diffstat (limited to 'src/curl/curl.c')
-rw-r--r-- | src/curl/curl.c | 7 |
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) |