txtinfo: http headers must use \r\n line endings
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 26 Nov 2015 14:23:23 +0000 (15:23 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 27 Nov 2015 09:17:21 +0000 (10:17 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/txtinfo/src/olsrd_txtinfo.c

index 8ea9bd9..f249c57 100644 (file)
@@ -815,8 +815,8 @@ static void send_info(unsigned int send_what, int the_socket) {
 
   /* Print minimal http header */
   if (http_headers) {
-    abuf_puts(&abuf, "HTTP/1.0 200 OK\n");
-    abuf_puts(&abuf, "Content-type: text/plain\n\n");
+    abuf_puts(&abuf, "HTTP/1.0 200 OK\r\n");
+    abuf_puts(&abuf, "Content-type: text/plain\r\n\r\n");
   }
 
   /* Print tables to IPC socket */