X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_send_api.c;fp=http_send_api.c;h=9c5747cbe4e4f3be861e9eba68561ac0b354f54c;hp=ed92028b731fa3a42f50870803d0b6ccb292372f;hb=1d04e52e7a5fc759c906d17d3547e74df06c2131;hpb=054e10cef40372dea5da8e20b96f07f24d21039f diff --git a/http_send_api.c b/http_send_api.c index ed92028..9c5747c 100644 --- a/http_send_api.c +++ b/http_send_api.c @@ -54,7 +54,7 @@ static inline void _http_send_response_start(void **buffer, size_t content_lengt if ((encoding = http_encoding_response_start(content_length, 0))) { #ifdef HTTP_HAVE_ZLIB - *buffer = http_encoding_deflate_stream_init(NULL, + *((http_encoding_stream **) buffer) = http_encoding_deflate_stream_init(NULL, (encoding == HTTP_ENCODING_GZIP) ? HTTP_DEFLATE_TYPE_GZIP : HTTP_DEFLATE_TYPE_ZLIB); #endif