rest_command component should support PATCH method (#27989)

Without PATCH the rest_command component lacks full RESTful API
support.
This commit is contained in:
Matthew Turney 2019-10-21 04:20:18 -05:00 committed by Fabian Affolter
parent 1e832dc9ec
commit 6c48abcaa5
2 changed files with 28 additions and 11 deletions

View file

@ -28,7 +28,7 @@ DEFAULT_TIMEOUT = 10
DEFAULT_METHOD = "get"
DEFAULT_VERIFY_SSL = True
SUPPORT_REST_METHODS = ["get", "post", "put", "delete"]
SUPPORT_REST_METHODS = ["get", "patch", "post", "put", "delete"]
CONF_CONTENT_TYPE = "content_type"