From 5973275ee447feaa7d3c5bd18ff1e4827c1f690a Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Fri, 4 Mar 2016 11:34:45 +0100 Subject: [PATCH] add content-type to view's page --- http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/http.c b/http.c index 9cef337..1ce24e7 100644 --- a/http.c +++ b/http.c @@ -886,6 +886,7 @@ static int view(struct mg_connection *conn, const char *viewname) return send_status(conn, 404, "Cannot open view page"); } + mg_send_header(conn, "Content-type", "text/html"); utstring_renew(sbuf); while (fgets(buf, sizeof(buf), fp) != NULL) { if ((p = strstr(buf, "@@@GEO@@@")) != NULL) {