Browse Source

[dev] add dav methods to the vendor macaron router

cgars 7 years ago
parent
commit
29e0991c24
1 changed files with 14 additions and 7 deletions
  1. 14 7
      vendor/gopkg.in/macaron.v1/router.go

+ 14 - 7
vendor/gopkg.in/macaron.v1/router.go

@@ -23,13 +23,20 @@ import (
 var (
 var (
 	// Known HTTP methods.
 	// Known HTTP methods.
 	_HTTP_METHODS = map[string]bool{
 	_HTTP_METHODS = map[string]bool{
-		"GET":     true,
-		"POST":    true,
-		"PUT":     true,
-		"DELETE":  true,
-		"PATCH":   true,
-		"OPTIONS": true,
-		"HEAD":    true,
+		"GET":       true,
+		"POST":      true,
+		"PUT":       true,
+		"DELETE":    true,
+		"PATCH":     true,
+		"OPTIONS":   true,
+		"HEAD":      true,
+		"MKCOL":     true,
+		"COPY":      true,
+		"MOVE":      true,
+		"LOCK":      true,
+		"UNLOCK":    true,
+		"PROPFIND":  true,
+		"PROPPATCH": true,
 	}
 	}
 )
 )