diff options
| author | lijia <[email protected]> | 2024-08-16 14:58:19 +0800 |
|---|---|---|
| committer | lijia <[email protected]> | 2024-08-16 16:05:57 +0800 |
| commit | 5ccd3bc23cf46a11ada14eab3e0b0a354733da59 (patch) | |
| tree | 140a676f27ca516916fdd78eb1a0f07d8c59dac8 /decoders/http/http_decoder_half.cpp | |
| parent | a59eca7685e126226d5c2b4679a2a90711cc5875 (diff) | |
Adjust benchmark directory,enable HTTP test,rename variables,format codesdev-integration-http
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; } |
