aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2024-06-19 10:38:03 +0200
committerFlorin Coras <florin.coras@gmail.com>2024-06-19 15:30:31 +0000
commit05fbc3569c60c4b2420cb608756cf7ff582bbab2 (patch)
tree94d41d900b4367661bdd6d0663427db174be8e20
parented61b20ad7bd439f58393ae19694aa09c4f44ee0 (diff)
http: fix app name formatting in template
app name is vector without null termination Type: fix Change-Id: Iaa50770c84f23a71165d76a63c29b76e90006ac6 Signed-off-by: Matus Fabian <matfabia@cisco.com>
-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 72b4812fd42..22aaaeb59b5 100644
--- a/src/plugins/http/http.c
+++ b/src/plugins/http/http.c
@@ -387,12 +387,12 @@ static const char *http_redirect_template = "HTTP/1.1 %s\r\n";
static const char *http_response_template = "HTTP/1.1 %s\r\n"
"Date: %U GMT\r\n"
"Expires: %U GMT\r\n"
- "Server: %s\r\n"
+ "Server: %v\r\n"
"Content-Type: %s\r\n"
"Content-Length: %lu\r\n\r\n";
static const char *http_request_template = "GET %s HTTP/1.1\r\n"
- "User-Agent: %s\r\n"
+ "User-Agent: %v\r\n"
"Accept: */*\r\n\r\n";
static u32