mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +00:00
Shut up spiffs. Proper DAV report
PUBLISHED_FROM=125379f6c624b4e938b5d543cb8ed5fe906de98f
This commit is contained in:
1 parent
02f6867a2f
commit
5bd59c7b70
1 file changed
+2
-3
+2
-3
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user