mirror of
https://github.com/owntracks/recorder.git
synced 2026-08-27 16:57:21 +00:00
add content-type to view's page
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user