Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1096b46
)
hsa: fix http response
41/21441/2
author
Benoît Ganne
<bganne@cisco.com>
Wed, 21 Aug 2019 18:32:18 +0000
(20:32 +0200)
committer
Damjan Marion
<dmarion@me.com>
Thu, 22 Aug 2019 10:26:20 +0000
(10:26 +0000)
http_ok is a const null-terminated string, not a vector.
Type: fix
Fixes:
844a36d1a6
Change-Id: Ide1a23506d9f43cd33c3a4b8ba11658c67fbecc8
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/plugins/hs_apps/http_server.c
patch
|
blob
|
history
diff --git
a/src/plugins/hs_apps/http_server.c
b/src/plugins/hs_apps/http_server.c
index
ace3c75
..
cc998a6
100644
(file)
--- a/
src/plugins/hs_apps/http_server.c
+++ b/
src/plugins/hs_apps/http_server.c
@@
-429,7
+429,7
@@
found:
html = format (html, "%v", reply);
html = format (html, html_footer);
/* And the http reply */
- http = format (0, http_ok
, vec_len (http_ok)
);
+ http = format (0, http_ok);
http = format (http, http_response, vec_len (html), html);
/* Send it */