| 200 | } |
| 201 | |
| 202 | static void |
| 203 | data_destroy(Data *data) |
| 204 | { |
| 205 | TSReleaseAssert(data); |
| 206 | |
| 207 | // deflateEnd return value ignore is intentional |
| 208 | // it would spew log on every client abort |
| 209 | deflateEnd(&data->zstrm); |
| 210 | |
| 211 | if (data->downstream_buffer) { |
| 212 | TSIOBufferDestroy(data->downstream_buffer); |
| 213 | } |
| 214 | |
| 215 | // brotlidestory |
| 216 | #if HAVE_BROTLI_ENCODE_H |
| 217 | BrotliEncoderDestroyInstance(data->bstrm.br); |
| 218 | #endif |
| 219 | |
| 220 | TSfree(data); |
| 221 | } |
| 222 | |
| 223 | static TSReturnCode |
| 224 | content_encoding_header(TSMBuffer bufp, TSMLoc hdr_loc, const int compression_type, int algorithm) |
no test coverage detected