diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-09-27 17:26:19 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-09-27 17:26:19 +0300 |
commit | 3a7126a3e25132dc01d238acb411fe7b77205929 (patch) | |
tree | 637e5220a7327bd78333237a89ee2a71eee741c3 | |
parent | b9972291435a373b7d92905f3ba153774e759b6b (diff) | |
download | libmicrohttpd-3a7126a3e25132dc01d238acb411fe7b77205929.tar.gz libmicrohttpd-3a7126a3e25132dc01d238acb411fe7b77205929.zip |
Removed one debug member from release builds
-rw-r--r-- | src/microhttpd/connection.c | 2 | ||||
-rw-r--r-- | src/microhttpd/internal.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index ddc60d85..e894fe24 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -1823,7 +1823,9 @@ setup_reply_properties (struct MHD_Connection *connection) | |||
1823 | use_chunked = false; /* chunked encoding cannot be used without body */ | 1823 | use_chunked = false; /* chunked encoding cannot be used without body */ |
1824 | 1824 | ||
1825 | c->rp.props.chunked = use_chunked; | 1825 | c->rp.props.chunked = use_chunked; |
1826 | #ifdef _DEBUG | ||
1826 | c->rp.props.set = true; | 1827 | c->rp.props.set = true; |
1828 | #endif /* _DEBUG */ | ||
1827 | } | 1829 | } |
1828 | 1830 | ||
1829 | 1831 | ||
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h index 37f38eea..6a88177e 100644 --- a/src/microhttpd/internal.h +++ b/src/microhttpd/internal.h | |||
@@ -1080,7 +1080,9 @@ struct MHD_Request | |||
1080 | */ | 1080 | */ |
1081 | struct MHD_Reply_Properties | 1081 | struct MHD_Reply_Properties |
1082 | { | 1082 | { |
1083 | #ifdef _DEBUG | ||
1083 | bool set; /**< Indicates that other members are set and valid */ | 1084 | bool set; /**< Indicates that other members are set and valid */ |
1085 | #endif /* _DEBUG */ | ||
1084 | bool use_reply_body_headers; /**< Use reply body-specific headers */ | 1086 | bool use_reply_body_headers; /**< Use reply body-specific headers */ |
1085 | bool send_reply_body; /**< Send reply body (can be zero-sized) */ | 1087 | bool send_reply_body; /**< Send reply body (can be zero-sized) */ |
1086 | bool chunked; /**< Use chunked encoding for reply */ | 1088 | bool chunked; /**< Use chunked encoding for reply */ |