[Olsr-dev] [PATCH v1 4/6] jsoninfo: fixup the Connection http header

Ferry Huberts (spam-protected)
Fri Nov 27 13:46:43 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 5a1f727..aaf9661 100644
--- a/lib/jsoninfo/src/olsrd_jsoninfo.c
+++ b/lib/jsoninfo/src/olsrd_jsoninfo.c
@@ -170,7 +170,7 @@ static size_t build_http_header(const char *status, const char *mime, uint32_t m
   size += snprintf(&buf[size], bufsize - size, "Server: OLSRD "PLUGIN_NAME"\r\n");
 
   /* connection-type */
-  size += snprintf(&buf[size], bufsize - size, "Connection: closed\r\n");
+  size += snprintf(&buf[size], bufsize - size, "Connection: close\r\n");
 
   /* MIME type */
   if (mime != NULL) {
-- 
2.5.0




More information about the Olsr-dev mailing list