Explorar o código

embedded_cpp example: Add comment for foo handler

bel2125 %!s(int64=8) %!d(string=hai) anos
pai
achega
fba1d9572e
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      examples/embedded_cpp/embedded_cpp.cpp

+ 4 - 1
examples/embedded_cpp/embedded_cpp.cpp

@@ -282,7 +282,7 @@ main(int argc, char *argv[])
     }
 
 	// CivetServer server(options); // <-- C style start
-    CivetServer server(cpp_options); // <-- C++ style start
+	CivetServer server(cpp_options); // <-- C++ style start
 
 	ExampleHandler h_ex;
 	server.addHandler(EXAMPLE_URI, h_ex);
@@ -296,6 +296,9 @@ main(int argc, char *argv[])
 	ABHandler h_ab;
 	server.addHandler("/a/b", h_ab);
 
+	/* This handler will handle "everything else", including
+	 * requests to files. If this handler is installed,
+	 * NO_FILES should be set. */
 	FooHandler h_foo;
 	server.addHandler("", h_foo);