[Olsr-dev] [PATCH v1 6/6] jsoninfo: fixup the Content-Length http header

Ferry Huberts (spam-protected)
Fri Nov 27 13:46:45 CET 2015


From: Ferry Huberts <(spam-protected)>

Make it spec compliant

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/jsoninfo/src/olsrd_jsoninfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/jsoninfo/src/olsrd_jsoninfo.c b/lib/jsoninfo/src/olsrd_jsoninfo.c
index 6f35ec5..822918d 100644
--- a/lib/jsoninfo/src/olsrd_jsoninfo.c
+++ b/lib/jsoninfo/src/olsrd_jsoninfo.c
@@ -186,7 +186,7 @@ static size_t build_http_header(const char *status, const char *mime, uint32_t m
 
   /* Content length */
   if (msgsize > 0) {
-    size += snprintf(&buf[size], bufsize - size, "Content-length: %i\r\n", msgsize);
+    size += snprintf(&buf[size], bufsize - size, "Content-Length: %i\r\n", msgsize);
   }
 
   /* Cache-control
-- 
2.5.0




More information about the Olsr-dev mailing list