http: udp proxy uri template parsing

Parse a URI template that has variables "target_host" and "target_port",
where varaibles are at the end of the path:
"/{target_host}/{target_port}/".

Type: improvement
Change-Id: I440b7f4951bffa1fd9971740b9890b221193943b
Signed-off-by: Matus Fabian <matfabia@cisco.com>
This commit is contained in:
Matus Fabian
2024-10-30 18:04:40 +01:00
committed by Florin Coras
parent 1c170f571a
commit 0af11f537f
4 changed files with 163 additions and 28 deletions

View File

@@ -406,7 +406,7 @@ hcs_ts_rx_callback (session_t *ts)
}
if (is_encoded)
{
u8 *decoded = http_percent_decode (args.buf);
u8 *decoded = http_percent_decode (args.buf, vec_len (args.buf));
vec_free (args.buf);
args.buf = decoded;
}