From: jiangxiaoming Date: Thu, 17 Dec 2020 02:01:43 +0000 (+0800) Subject: hsa: http server: fix http response format type error X-Git-Tag: v21.10-rc0~791 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=88405809613b8255174e6c5fe257cfaec5af1e27;p=vpp.git hsa: http server: fix http response format type error Type: fix Signed-off-by: jiangxiaoming Change-Id: I15e43ded1ccd1b06a5ce1822a260fd2dd7edf95f --- diff --git a/src/plugins/hs_apps/http_server.c b/src/plugins/hs_apps/http_server.c index b0e31b9645c..a93261f0b04 100644 --- a/src/plugins/hs_apps/http_server.c +++ b/src/plugins/hs_apps/http_server.c @@ -238,7 +238,7 @@ static const char *http_response = "Expires: Mon, 11 Jan 1970 10:10:10 GMT\r\n" "Connection: close \r\n" "Pragma: no-cache\r\n" - "Content-Length: %d\r\n\r\n%s"; + "Content-Length: %d\r\n\r\n%v"; static const char *http_error_template = "HTTP/1.1 %s\r\n"