diff --git a/examples/embedded_cpp/embedded_cpp.cpp b/examples/embedded_cpp/embedded_cpp.cpp index b3cc0c21..8b32f40f 100644 --- a/examples/embedded_cpp/embedded_cpp.cpp +++ b/examples/embedded_cpp/embedded_cpp.cpp @@ -22,14 +22,14 @@ class ExampleHandler: public CivetHandler public: bool handleGet(CivetServer *server, struct mg_connection *conn) { mg_printf(conn, "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n"); - mg_printf(conn, ""); - mg_printf(conn, "

This is an example text from a C++ handler

"); - mg_printf(conn, "

To see a page from the A handler click here

"); - mg_printf(conn, "

To see a page from the A/B handler click here

"); - mg_printf(conn, "

To see a page from the *.foo handler click here

"); - mg_printf(conn, "

To exit click here

", - EXIT_URI); - mg_printf(conn, "\n"); + mg_printf(conn, "\r\n"); + mg_printf(conn, "

This is an example text from a C++ handler

\r\n"); + mg_printf(conn, "

To see a page from the A handler click here

\r\n"); + mg_printf(conn, "

To see a page from the A handler with a parameter click here

\r\n"); + mg_printf(conn, "

To see a page from the A/B handler click here

\r\n"); + mg_printf(conn, "

To see a page from the *.foo handler click here

\r\n"); + mg_printf(conn, "

To exit click here

\r\n", EXIT_URI); + mg_printf(conn, "\r\n"); return true; } };