diff options
author | 2025-01-12 22:18:56 +0100 | |
---|---|---|
committer | 2025-01-21 13:47:28 -0500 | |
commit | 98d1264fcdb81c1213e1d0ac02098a3f6673631a (patch) | |
tree | 71fa5fe3da48681c64419bc6ceab24e2f442fb42 /src/plugins/hs_apps/vcl/vcl_test_protos.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/vcl/vcl_test_protos.c')
-rw-r--r-- | src/plugins/hs_apps/vcl/vcl_test_protos.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/plugins/hs_apps/vcl/vcl_test_protos.c b/src/plugins/hs_apps/vcl/vcl_test_protos.c index 9c81c5f17a1..da4b6997ec1 100644 --- a/src/plugins/hs_apps/vcl/vcl_test_protos.c +++ b/src/plugins/hs_apps/vcl/vcl_test_protos.c @@ -1087,13 +1087,6 @@ vt_process_http_server_read_msg (vcl_test_session_t *ts, void *buf, return 0; } - if (msg.data.target_form != HTTP_TARGET_ORIGIN_FORM) - { - vt_http_send_reply_msg (ts, HTTP_STATUS_BAD_REQUEST); - vterr ("error! http target not in origin form", 0); - return 0; - } - /* validate target path syntax */ if (msg.data.target_path_len) { @@ -1225,7 +1218,6 @@ vt_process_http_client_write_msg (vcl_test_session_t *ts, void *buf, msg.method_type = HTTP_REQ_POST; /* target */ - msg.data.target_form = HTTP_TARGET_ORIGIN_FORM; target = (u8 *) "/vcl_test_http\0"; msg.data.target_path_len = strlen ((char *) target); |