diff options
| author | liuwentan <[email protected]> | 2024-01-18 11:36:15 +0800 |
|---|---|---|
| committer | liuwentan <[email protected]> | 2024-01-18 11:36:15 +0800 |
| commit | 31b8a758b4416f547f1e693dcf1a341249b086b8 (patch) | |
| tree | ffe22933dff888d097c0ed7f457d014c86bc929d | |
| parent | 8880b41cccd5853c3f242f2e62d5762d8b98f8b3 (diff) | |
[HTTP_DECODER]bugfix for get_header_by_key
| -rw-r--r-- | src/http_decoder/http_decoder_table.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http_decoder/http_decoder_table.c b/src/http_decoder/http_decoder_table.c index ced30d0..300994d 100644 --- a/src/http_decoder/http_decoder_table.c +++ b/src/http_decoder/http_decoder_table.c @@ -401,7 +401,9 @@ int http_decoder_table_get_header(struct http_decoder_table *table, struct hstri if (tmp_key.str_len == key->str_len && (0 == strncasecmp(tmp_key.str, key->str, key->str_len))) { - http_decoder_string_get(&tmp_header->val, &hdr_array[header_cnt++].val); + http_decoder_string_get(&tmp_header->key, &hdr_array[header_cnt].key); + http_decoder_string_get(&tmp_header->val, &hdr_array[header_cnt].val); + header_cnt++; } } } |
