libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit ca8693dacc59ec797f2a47518fe3b34456b67836
parent 5f9f3f06a47cecb502caf110ba6b35e8d38f48e8
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sat, 12 Dec 2020 15:36:24 +0300

struct MHD_Response: minor clarification

Diffstat:
Msrc/microhttpd/internal.h | 2+-
Msrc/microhttpd/response.c | 2++
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h @@ -425,7 +425,7 @@ struct MHD_Response size_t data_size; /** - * Size of the data buffer @e data. + * Size of the writable data buffer @e data. */ size_t data_buffer_size; diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c @@ -781,6 +781,8 @@ MHD_create_response_from_data (size_t size, response->total_size = size; response->data = data; response->data_size = size; + if (must_copy) + response->data_buffer_size = size; return response; }