diff options
author | Matus Fabian <matfabia@cisco.com> | 2025-01-12 22:18:56 +0100 |
---|---|---|
committer | Matus Fabian <matfabia@cisco.com> | 2025-01-21 13:47:28 -0500 |
commit | 98d1264fcdb81c1213e1d0ac02098a3f6673631a (patch) | |
tree | 71fa5fe3da48681c64419bc6ceab24e2f442fb42 /src/plugins/hs_apps/http_client_cli.c | |
parent | 98028dd4c475f8929cf07a87114e857bfc6bda93 (diff) |
http: target parsing improvement
Make it http version neutral, since h2 and h3 use 3 pseudo-headers.
Added scheme, target_authority_offset and target_authority_len
to http_msg_data_t, target_form removed.
Http transport now validate if correct form of request target
is received, so now we are also able to receive requests with
absolute-form target in server apps like http_static.
As bonus, unformat is not longer used to parse IP addresses.
Type: improvement
Change-Id: I369f77e2639c43cc1244d91f883c526eb88af63e
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/hs_apps/http_client_cli.c')
-rw-r--r-- | src/plugins/hs_apps/http_client_cli.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/hs_apps/http_client_cli.c b/src/plugins/hs_apps/http_client_cli.c index b9658ed10d0..3c50e24c9fd 100644 --- a/src/plugins/hs_apps/http_client_cli.c +++ b/src/plugins/hs_apps/http_client_cli.c @@ -166,7 +166,6 @@ hcc_ts_connected_callback (u32 app_index, u32 hc_index, session_t *as, msg.type = HTTP_MSG_REQUEST; msg.method_type = HTTP_REQ_GET; /* request target */ - msg.data.target_form = HTTP_TARGET_ORIGIN_FORM; msg.data.target_path_offset = 0; msg.data.target_path_len = vec_len (hcm->http_query); /* custom headers */ |