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

Ferry Huberts (spam-protected)
Fri Nov 27 13:46:44 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 aaf9661..6f35ec5 100644
--- a/lib/jsoninfo/src/olsrd_jsoninfo.c
+++ b/lib/jsoninfo/src/olsrd_jsoninfo.c
@@ -174,7 +174,7 @@ static size_t build_http_header(const char *status, const char *mime, uint32_t m
 
   /* MIME type */
   if (mime != NULL) {
-    size += snprintf(&buf[size], bufsize - size, "Content-type: %s\r\n", mime);
+    size += snprintf(&buf[size], bufsize - size, "Content-Type: %s\r\n", mime);
   }
 
   /* CORS data */
-- 
2.5.0




More information about the Olsr-dev mailing list