File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
crates/theater/src/host/framework Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,9 @@ fn is_valid_host(host: &str) -> bool {
6464fn is_valid_method ( method : & str ) -> bool {
6565 match method {
6666 "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "CONNECT" | "TRACE"
67- | "*" => true ,
67+ | "*"
68+ // WebDAV methods for git-http-push and WebDAV protocol support
69+ | "LOCK" | "UNLOCK" | "MKCOL" | "COPY" | "MOVE" | "PROPFIND" | "PROPPATCH" => true ,
6870 _ => false ,
6971 }
7072}
Original file line number Diff line number Diff line change @@ -99,5 +99,7 @@ pub fn is_valid_method(method: &str) -> bool {
9999 matches ! (
100100 method,
101101 "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "TRACE" | "CONNECT"
102+ // WebDAV methods for git-http-push and WebDAV protocol support
103+ | "LOCK" | "UNLOCK" | "MKCOL" | "COPY" | "MOVE" | "PROPFIND" | "PROPPATCH"
102104 )
103105}
You can’t perform that action at this time.
0 commit comments