From: Florin Coras Date: Wed, 23 Feb 2022 02:18:47 +0000 (-0800) Subject: http hsa: use octet-stream content type for tps X-Git-Tag: v22.10-rc0~349 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=1b026cb028d6bcf24d243f633352b7ac58ce5c00;p=vpp.git http hsa: use octet-stream content type for tps Type: improvement Signed-off-by: Florin Coras Change-Id: I925618e426b325f4fafb9ed39a2d7c2d7c7b38f3 --- diff --git a/src/plugins/hs_apps/http_tps.c b/src/plugins/hs_apps/http_tps.c index 205e062a923..089350eb506 100644 --- a/src/plugins/hs_apps/http_tps.c +++ b/src/plugins/hs_apps/http_tps.c @@ -189,7 +189,7 @@ hts_start_send_data (hts_session_t *hs, http_status_code_t status) msg.type = HTTP_MSG_REPLY; msg.code = status; - msg.content_type = HTTP_CONTENT_TEXT_HTML; + msg.content_type = HTTP_CONTENT_APP_OCTET_STREAM; msg.data.type = HTTP_MSG_DATA_INLINE; msg.data.len = hs->data_len; diff --git a/src/plugins/http/http.h b/src/plugins/http/http.h index da74459794c..d18b057de19 100644 --- a/src/plugins/http/http.h +++ b/src/plugins/http/http.h @@ -83,7 +83,8 @@ typedef enum http_msg_type_ _ (TEXT_HTML, "text/html") \ _ (TEXT_CSS, "text/css") \ _ (TEXT_JS, "text/javascript") \ - _ (TEXT_JSON, "application/json") + _ (APP_JSON, "application/json") \ + _ (APP_OCTET_STREAM, "application/octet-stream") typedef enum http_content_type_ {