Skip to content

Commit 474a512

Browse files
authored
Add support for PATCH requests (#71)
1 parent db88bd7 commit 474a512

File tree

1 file changed

+1
-1
lines changed
  • scaleway-core/scaleway_core

1 file changed

+1
-1
lines changed

scaleway-core/scaleway_core/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def _request(
121121
additional_headers: Dict[str, str] = {}
122122

123123
method = method.upper()
124-
if method == "POST" or method == "PUT":
124+
if method == "POST" or method == "PUT" or method == "PATCH":
125125
additional_headers["Content-Type"] = "application/json; charset=utf-8"
126126

127127
if body is None:

0 commit comments

Comments
 (0)