[#504] Fix ALLOWED_METHODS regex

This commit is contained in:
Théophile Diot 2023-05-26 10:46:27 -04:00
parent 168dfc4390
commit 665b110c63
No known key found for this signature in database
GPG key ID: E752C80DB72BB014

View file

@ -38,7 +38,7 @@
"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|COPY|LOCK|MKCOL|MOVE|PROPFIND|PROPPATCH|UNLOCK)(?!.*\\2))+$",
"regex": "^(?!\\|)(\\|?(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH|COPY|LOCK|MKCOL|MOVE|PROPFIND|PROPPATCH|UNLOCK)(?!.*(^|\\|)\\2))+$",
"type": "text"
},
"MAX_CLIENT_SIZE": {