Skip to content

Commit 8b0a257

Browse files
committed
Add PUT to retry allow list
1 parent 3b618bc commit 8b0a257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unboxapi/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
HTTP_TOTAL_RETRIES = 3 # Number of total retries
2020
HTTP_RETRY_BACKOFF_FACTOR = 2 # Wait 1, 2, 4 seconds between retries
2121
HTTP_STATUS_FORCE_LIST = [408, 429] + list(range(500, 504)) + list(range(506, 531))
22-
HTTP_RETRY_ALLOWED_METHODS = frozenset({"GET", "POST"})
22+
HTTP_RETRY_ALLOWED_METHODS = frozenset({"GET", "PUT", "POST"})
2323

2424
CLIENT_METADATA = {"version": __version__}
2525

0 commit comments

Comments
 (0)