add content-type to view's page

This commit is contained in:
Jan-Piet Mens
2016-03-04 11:34:45 +01:00
parent f88e1a1898
commit 5973275ee4
+1
View File
@@ -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) {