[Olsr-dev] [PATCH v1 19/44] txtinfo: http headers must use \r\n line endings
Ferry Huberts
(spam-protected)
Fri Nov 27 10:43:12 CET 2015
From: Ferry Huberts <(spam-protected)>
Signed-off-by: Ferry Huberts <(spam-protected)>
---
lib/txtinfo/src/olsrd_txtinfo.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/txtinfo/src/olsrd_txtinfo.c b/lib/txtinfo/src/olsrd_txtinfo.c
index 8ea9bd9..f249c57 100644
--- a/lib/txtinfo/src/olsrd_txtinfo.c
+++ b/lib/txtinfo/src/olsrd_txtinfo.c
@@ -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 */
--
2.5.0
More information about the Olsr-dev
mailing list