aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/http
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-01-25 11:41:58 -0800
committerFlorin Coras <florin.coras@gmail.com>2022-01-25 19:31:33 +0000
commit6ec81f209af854176374744d3bd1702502600f42 (patch)
tree9185acda68a1785b09bf4b6b5002d50a0d11f2de /src/plugins/http
parent5f0106a76fbc3792781a81dedb5a7e41813430d3 (diff)
http hsa: avoid extra space in request
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I70f22350811ef3cd029d69af75659f95cc9a74c8
Diffstat (limited to 'src/plugins/http')
-rw-r--r--src/plugins/http/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/http/http.c b/src/plugins/http/http.c
index 0868027982e..705af9a9ef5 100644
--- a/src/plugins/http/http.c
+++ b/src/plugins/http/http.c
@@ -418,13 +418,13 @@ state_wait_method (http_conn_t *hc, transport_send_params_t *sp)
goto error;
}
- len = i - hc->rx_buf_offset;
+ len = i - hc->rx_buf_offset - 1;
}
else if ((i = v_find_index (hc->rx_buf, 0, "POST ")) >= 0)
{
hc->method = HTTP_REQ_POST;
hc->rx_buf_offset = i + 6;
- len = vec_len (hc->rx_buf) - hc->rx_buf_offset;
+ len = vec_len (hc->rx_buf) - hc->rx_buf_offset - 1;
}
else
{