Explorar o código

Fixed mistyped function call in example

Jens Wallgren %!s(int64=4) %!d(string=hai) anos
pai
achega
cd20c528af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/Embedding.md

+ 1 - 1
docs/Embedding.md

@@ -294,7 +294,7 @@ handler(struct mg_connection *conn, void *ignored)
 	const char *msg = "Hello world";
 	unsigned long len = (unsigned long)strlen(msg);
 
-    mg_send_ok(conn, "text/plain", len);
+	mg_send_http_ok(conn, "text/plain", len);
 
 	mg_write(conn, msg, len);