hsa: http server: fix http response format type error 52/30452/3
authorjiangxiaoming <jiangxiaoming@outlook.com>
Thu, 17 Dec 2020 02:01:43 +0000 (10:01 +0800)
committerxm j <jiangxiaoming@outlook.com>
Thu, 17 Dec 2020 02:26:02 +0000 (02:26 +0000)
Type: fix

Signed-off-by: jiangxiaoming <jiangxiaoming@outlook.com>
Change-Id: I15e43ded1ccd1b06a5ce1822a260fd2dd7edf95f

src/plugins/hs_apps/http_server.c

index b0e31b9..a93261f 100644 (file)
@@ -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"