jsoninfo: fixup the Connection http header
authorFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 27 Nov 2015 11:58:00 +0000 (12:58 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 27 Nov 2015 12:29:23 +0000 (13:29 +0100)
Make it spec compliant

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/jsoninfo/src/olsrd_jsoninfo.c

index 5a1f727..aaf9661 100644 (file)
@@ -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) {