diff options
Diffstat (limited to 'decoders/http/http_decoder_half.cpp')
| -rw-r--r-- | decoders/http/http_decoder_half.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/decoders/http/http_decoder_half.cpp b/decoders/http/http_decoder_half.cpp index bea97d0..a505fac 100644 --- a/decoders/http/http_decoder_half.cpp +++ b/decoders/http/http_decoder_half.cpp @@ -2,7 +2,7 @@ #include <stdio.h> #include <string.h> #include <arpa/inet.h> -#include "http_decoder_inc.h" +#include "http_decoder_private.h" #include "llhttp.h" #include "uthash/utlist.h" @@ -85,8 +85,7 @@ void http_half_decompress_buffer_free(struct http_decoder_half_data *data, hstri struct http_decompress_buffer *el, *tmp; DL_FOREACH_SAFE(data->decompress_buffer_list, el, tmp) { - if (el->iov.iov_base == decompress_body->iov_base - && el->iov.iov_len == decompress_body->iov_len) + if (el->iov.iov_base == decompress_body->iov_base && el->iov.iov_len == decompress_body->iov_len) { DL_DELETE(data->decompress_buffer_list, el); if (el->iov.iov_base) @@ -157,7 +156,7 @@ static void http_decoder_half_data_decompress(struct http_decoder_half_data *dat return; } - if(local_outdata!= NULL && local_outdata_len > 0) + if (local_outdata != NULL && local_outdata_len > 0) { struct http_decompress_buffer *decompress_buffer = CALLOC(struct http_decompress_buffer, 1); assert(decompress_buffer); @@ -873,7 +872,7 @@ static void http_decoder_half_decompress_buf_free(struct http_decoder_half_data if (el->iov.iov_base != NULL) { FREE(el->iov.iov_base); - } + } FREE(el); } ref_data->decompress_buffer_list = NULL; @@ -1208,7 +1207,7 @@ void http_half_get_max_transaction_seq(struct http_decoder_exdata *exdata, long enum http_content_encoding http_half_data_get_content_encoding(struct http_decoder_half_data *hf_data) { - if(NULL == hf_data) + if (NULL == hf_data) { return HTTP_CONTENT_ENCODING_NONE; } |
