瀏覽代碼

Merge pull request #939 from jodogne/webdav-writing

Adding HTTP methods for write access to files in WEBDAV
bel2125 4 年之前
父節點
當前提交
5684accd27
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/civetweb.c

+ 6 - 1
src/civetweb.c

@@ -10948,8 +10948,13 @@ static const struct mg_http_method_info http_methods[] = {
      * Section 9.1 of [RFC2616]). Responses to this
      * method MUST NOT be cached. */
 
+    /* Methods for write access to files on WEBDAV (RFC 2518) */
+    {"LOCK", 1, 1, 0, 0, 0},
+    {"UNLOCK", 1, 0, 0, 0, 0},
+    {"PROPPATCH", 1, 1, 0, 0, 0},
+
     /* Unsupported WEBDAV Methods: */
-    /* PROPPATCH, COPY, MOVE, LOCK, UNLOCK (RFC 2518) */
+    /* COPY, MOVE (RFC 2518) */
     /* + 11 methods from RFC 3253 */
     /* ORDERPATCH (RFC 3648) */
     /* ACL (RFC 3744) */