Fix MG DAV

PUBLISHED_FROM=132db6ed9c9e1eb9ec19b4f9299448b901b92231
This commit is contained in:
Alexander Alashkin authored and rojer committed 2015-12-08 12:35:29 +00:00
1 parent 31323b01bc
commit 518a7f8a71
3 files changed
+16 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
PROG = simplest_web_server
SOURCES = $(PROG).c ../../mongoose.c
CFLAGS = -W -Wall -I../.. $(CFLAGS_EXTRA)
CFLAGS = -W -Wall -I../.. $(CFLAGS_EXTRA) -DMG_DISABLE_DAV_AUTH
all: $(PROG)
@@ -22,6 +22,7 @@ int main(void) {
// Set up HTTP server parameters
mg_set_protocol_http_websocket(nc);
s_http_server_opts.document_root = "."; // Serve current directory
s_http_server_opts.dav_document_root = "."; // Allow access via WebDav
s_http_server_opts.enable_directory_listing = "yes";
printf("Starting web server on port %s\n", s_http_port);