aboutsummaryrefslogtreecommitdiff
path: root/src/examples/http_compression.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/http_compression.c')
-rw-r--r--src/examples/http_compression.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/examples/http_compression.c b/src/examples/http_compression.c
index a91a39a3..0f532cf0 100644
--- a/src/examples/http_compression.c
+++ b/src/examples/http_compression.c
@@ -130,9 +130,11 @@ ahc_echo (void *cls,
130 can_compress (connection)) 130 can_compress (connection))
131 comp = body_compress ((void **) &body_str, 131 comp = body_compress ((void **) &body_str,
132 &body_len); 132 &body_len);
133 response = MHD_create_response_from_buffer (body_len, 133 response =
134 body_str, 134 MHD_create_response_from_buffer_with_free_callback (body_len,
135 MHD_RESPMEM_MUST_FREE); 135 body_str,
136 &free);
137
136 if (NULL == response) 138 if (NULL == response)
137 { 139 {
138 free (body_str); 140 free (body_str);