http: h2 fix msg.data.len passed to server app 05/43105/1
authorMatus Fabian <[email protected]>
Sun, 8 Jun 2025 14:37:01 +0000 (10:37 -0400)
committerMatus Fabian <[email protected]>
Sun, 8 Jun 2025 14:37:01 +0000 (10:37 -0400)
Type: fix

Change-Id: Iac4e5edf42280a3d6679e12e0dd338adfe16aaf3
Signed-off-by: Matus Fabian <[email protected]>
src/plugins/http/http2/http2.c

index ac0e567..36a27f4 100644 (file)
@@ -888,7 +888,7 @@ http2_req_state_wait_transport_method (http_conn_t *hc, http2_req_t *req,
   msg.type = HTTP_MSG_REQUEST;
   msg.method_type = control_data.method;
   msg.data.type = HTTP_MSG_DATA_INLINE;
-  msg.data.len = req->base.connection_header_index;
+  msg.data.len = req->base.control_data_len;
   msg.data.scheme = control_data.scheme;
   msg.data.target_authority_offset = control_data.authority - wrk->header_list;
   msg.data.target_authority_len = control_data.authority_len;