diff options
| author | 李佳 <[email protected]> | 2024-04-12 07:08:27 +0000 |
|---|---|---|
| committer | 李佳 <[email protected]> | 2024-04-12 07:08:27 +0000 |
| commit | 55ac6e270ae37299e2bce3a47a3d784e29dcae14 (patch) | |
| tree | 577f3c13e07dba159f8c77800b8bf9220c380643 /test | |
| parent | 9403db98e5e0b435ee9da8e049be0ed2d1727cc9 (diff) | |
| parent | 9ea86638e1676a6fc8c8892beb3fb6afd431b5cc (diff) | |
Merge branch 'delete-getxxx-api-dir' into 'develop'
Remove the dir of http_message_get_xxx API, because msg type already contains this information
See merge request stellar/http_decoder!4
Diffstat (limited to 'test')
| -rw-r--r-- | test/http_decoder_gtest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/http_decoder_gtest.cpp b/test/http_decoder_gtest.cpp index cabba75..5eaf1db 100644 --- a/test/http_decoder_gtest.cpp +++ b/test/http_decoder_gtest.cpp @@ -318,7 +318,7 @@ http_decoder_test_entry(struct session *sess, int topic_id, const void *data, req_line_to_json(gtest_plug_exdata->result_jnode[HTTP_TRANSACTION_REQ], &req_line); break; case HTTP_MESSAGE_REQ_HEADER: - while (http_message_request_header_next(msg, &header) > 0) + while (http_message_header_next(msg, &header) > 0) { http_header_to_json(gtest_plug_exdata->result_jnode[HTTP_TRANSACTION_REQ], &header); } @@ -328,7 +328,7 @@ http_decoder_test_entry(struct session *sess, int topic_id, const void *data, case HTTP_MESSAGE_REQ_BODY: // http_message_get_request_raw_body(msg, &body); // output_http_body(&body, 0); - http_message_get_request_decompress_body(msg, &body); + http_message_get_decompress_body(msg, &body); // output_http_body(&body, 1); append_http_payload(sess, gtest_plug_exdata, &body, HTTP_TRANSACTION_REQ); break; @@ -338,7 +338,7 @@ http_decoder_test_entry(struct session *sess, int topic_id, const void *data, res_line_to_json(gtest_plug_exdata->result_jnode[HTTP_TRANSACTION_RES], &res_line); break; case HTTP_MESSAGE_RES_HEADER: - while (http_message_response_header_next(msg, &header) > 0) + while (http_message_header_next(msg, &header) > 0) { http_header_to_json(gtest_plug_exdata->result_jnode[HTTP_TRANSACTION_RES], &header); } @@ -347,7 +347,7 @@ http_decoder_test_entry(struct session *sess, int topic_id, const void *data, case HTTP_MESSAGE_RES_BODY: // http_message_get_response_raw_body(msg, &body); // output_http_body(&body, 0); - http_message_get_response_decompress_body(msg, &body); + http_message_get_decompress_body(msg, &body); // output_http_body(&body, 1); append_http_payload(sess, gtest_plug_exdata, &body, HTTP_TRANSACTION_RES); break; |
