[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 01/03: struct MHD_Response: minor clarification
From: |
gnunet |
Subject: |
[libmicrohttpd] 01/03: struct MHD_Response: minor clarification |
Date: |
Sat, 12 Dec 2020 16:45:47 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit ca8693dacc59ec797f2a47518fe3b34456b67836
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sat Dec 12 15:36:24 2020 +0300
struct MHD_Response: minor clarification
---
src/microhttpd/internal.h | 2 +-
src/microhttpd/response.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index d59735b5..a92f46f2 100644
--- 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
index b857326f..f4dc361c 100644
--- 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;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.