Commit 5bd59c7b authored by Sergey Lyubka's avatar Sergey Lyubka Committed by rojer

Shut up spiffs. Proper DAV report

    PUBLISHED_FROM=125379f6c624b4e938b5d543cb8ed5fe906de98f
parent 02f6867a
...@@ -6240,10 +6240,9 @@ static void mg_send_digest_auth_request(struct mg_connection *c, ...@@ -6240,10 +6240,9 @@ static void mg_send_digest_auth_request(struct mg_connection *c,
static void send_options(struct mg_connection *nc) { static void send_options(struct mg_connection *nc) {
mg_printf(nc, "%s", mg_printf(nc, "%s",
"HTTP/1.1 200 OK\r\nAllow: GET, POST, HEAD, CONNECT, PUT, " "HTTP/1.1 200 OK\r\nAllow: GET, POST, HEAD, CONNECT, OPTIONS"
"DELETE, OPTIONS, MKCOL"
#ifndef MG_DISABLE_DAV #ifndef MG_DISABLE_DAV
", PROPFIND \r\nDAV: 1" ", MKCOL, PUT, DELETE, PROPFIND, MOVE\r\nDAV: 1,2"
#endif #endif
"\r\n\r\n"); "\r\n\r\n");
nc->flags |= MG_F_SEND_AND_CLOSE; nc->flags |= MG_F_SEND_AND_CLOSE;
......
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