From 882a7581cca2696377d1242b319f6bd5173e80f5 Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Sun, 25 Jul 2021 18:26:41 -0400 Subject: [PATCH] http: add extra info about httpDownloadData(). --- include/core/http.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/core/http.h b/include/core/http.h index 3ff5fbf..888c83e 100644 --- a/include/core/http.h +++ b/include/core/http.h @@ -66,7 +66,7 @@ bool httpPerformGetRequest(const char *url, bool force_https, size_t *outsize, H bool httpDownloadFile(const char *path, const char *url, bool force_https, HttpProgressCallback progress_cb, void *progress_ptr); /// Wrapper for httpPerformGetRequest() + httpWriteBufferCallback() that manages a HttpBuffer element on its own. -/// Returns a pointer to a dynamically allocated buffer that holds the downloaded data, which must be freed by the user. +/// Returns a pointer to a dynamically allocated buffer that holds the downloaded data, which must be freed by the user. This buffer is not NULL terminated. /// Providing 'outsize' is mandatory. Returns NULL if the request fails. char *httpDownloadData(size_t *outsize, const char *url, bool force_https, HttpProgressCallback progress_cb, void *progress_ptr);