/[projects]/smsdaemon/embedded-http/embeddedhttp.cpp
ViewVC logotype

Diff of /smsdaemon/embedded-http/embeddedhttp.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 677 by torben, Tue Apr 27 21:03:37 2010 UTC revision 679 by torben, Tue Apr 27 21:12:11 2010 UTC
# Line 37  void show_secret(struct mg_connection *c Line 37  void show_secret(struct mg_connection *c
37    
38  void show_index(struct mg_connection *conn, const struct mg_request_info *request_info, void *user_data) {  void show_index(struct mg_connection *conn, const struct mg_request_info *request_info, void *user_data) {
39          mg_printf(conn, "%s", "HTTP/1.1 200 OK\r\n");          mg_printf(conn, "%s", "HTTP/1.1 200 OK\r\n");
40          mg_printf(conn, "%s", "Content-Type: text/plain\r\n\r\n");          mg_printf(conn, "%s", "Content-Type: text/html\r\n\r\n");
41                    
42          mg_printf(conn, "%s", "<html><body><h2>smsdaemon</h2>\n");          mg_printf(conn, "%s", "<html><body><h2>smsdaemon</h2>\n");
43          mg_printf(conn, "%s", "<a href='/status'>smsdaemon status</a>\n");          mg_printf(conn, "%s", "<a href='/status'>smsdaemon status</a>\n");

Legend:
Removed from v.677  
changed lines
  Added in v.679

  ViewVC Help
Powered by ViewVC 1.1.20