Commit e0697683 authored by Sergey Lyubka's avatar Sergey Lyubka

Typo fixed

parent c9f74075
...@@ -15,7 +15,7 @@ Here's a minimal application `app.c` that embeds mongoose: ...@@ -15,7 +15,7 @@ Here's a minimal application `app.c` that embeds mongoose:
#include "mongoose.h" #include "mongoose.h"
int main(void) { int main(void) {
struct mg_server *server = mg_create_server(NULL); struct mg_server *server = mg_create_server(NULL);
mg_set_option(server, "document_root", "."); // Server current directory mg_set_option(server, "document_root", "."); // Serve current directory
mg_set_option(server, "listening_port", "8080"); // Open port 8080 mg_set_option(server, "listening_port", "8080"); // Open port 8080
for (;;) mg_poll_server(server, 1000); // Infinite loop, Ctrl-C to stop for (;;) mg_poll_server(server, 1000); // Infinite loop, Ctrl-C to stop
mg_destroy_server(&server); mg_destroy_server(&server);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment