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/http_static/static_server.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/http_static/static_server.c')
-rw-r--r-- | src/plugins/http_static/static_server.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/plugins/http_static/static_server.c b/src/plugins/http_static/static_server.c index 7afac4229c3..fe5718b7e0f 100644 --- a/src/plugins/http_static/static_server.c +++ b/src/plugins/http_static/static_server.c @@ -546,12 +546,6 @@ hss_ts_rx_callback (session_t *ts) goto done; } - if (msg.data.target_form != HTTP_TARGET_ORIGIN_FORM) - { - start_send_data (hs, HTTP_STATUS_BAD_REQUEST); - goto done; - } - /* Read target path */ if (msg.data.target_path_len) { |