From 98d1264fcdb81c1213e1d0ac02098a3f6673631a Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Sun, 12 Jan 2025 22:18:56 +0100 Subject: 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 --- src/plugins/hs_apps/http_client_cli.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/plugins/hs_apps/http_client_cli.c') 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 */ -- cgit 1.2.3-korg