From 1d88fb97bef7dbe998830ea1eb2f8519c6cc9e97 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Mon, 24 Jan 2022 12:47:50 -0800 Subject: http: generalize buffer implementation And add support for passing of pointers Type: improvement Signed-off-by: Florin Coras Change-Id: Ida3e5ae4ff7842366ae92a5f33c5e761355951a6 --- src/plugins/hs_apps/http_server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/hs_apps') diff --git a/src/plugins/hs_apps/http_server.c b/src/plugins/hs_apps/http_server.c index 7a4a5194022..3083937ec74 100644 --- a/src/plugins/hs_apps/http_server.c +++ b/src/plugins/hs_apps/http_server.c @@ -159,7 +159,8 @@ start_send_data (http_session_t *hs, http_status_code_t status) msg.type = HTTP_MSG_REPLY; msg.code = status; - msg.data.content_type = HTTP_CONTENT_TEXT_HTML; + msg.content_type = HTTP_CONTENT_TEXT_HTML; + msg.data.type = HTTP_MSG_DATA_INLINE; msg.data.len = vec_len (hs->tx_buf); ts = session_get (hs->vpp_session_index, hs->thread_index); -- cgit 1.2.3-korg