Fix Now support WebDAV methods in the ALLOWED_METHODS setting's regex

This commit is contained in:
Théophile Diot 2023-03-29 10:01:25 +02:00
parent e50c92250b
commit 283828e8f7
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
1 changed files with 2 additions and 2 deletions

View File

@ -35,10 +35,10 @@
"ALLOWED_METHODS": {
"context": "multisite",
"default": "GET|POST|HEAD",
"help": "Allowed HTTP methods, separated with pipes to be sent by clients.",
"help": "Allowed HTTP and WebDAV methods, separated with pipes to be sent by clients.",
"id": "allowed-methods",
"label": "Allowed methods",
"regex": "^(?!\\|)(\\|?(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)(?!.*\\2))+$",
"regex": "^(?!\\|)(\\|?(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH|COPY|LOCK|MKCOL|MOVE|PROPFIND|PROPPATCH|UNLOCK)(?!.*\\2))+$",
"type": "text"
},
"MAX_CLIENT_SIZE": {