Skip to content

Commit cd184d3

Browse files
authored
Remove method whitelist as per #235
Currently we only allow retries for `GET` requests, I can't see any reason why we would have limited it so. By removing the field, the defaults will be used - https://urllib3.readthedocs.io/en/stable/reference/urllib3.util.html#urllib3.util.Retry.DEFAULT_ALLOWED_METHODS Users can still provide their own `session` object to the client constructor if this change is not suitable for them.
1 parent d6d9280 commit cd184d3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

blackduck/Client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def __init__(self, base_url, timeout, retries, verify):
4242
total=int(retries),
4343
backoff_factor=2, # exponential retry 1, 2, 4, 8, 16 sec ...
4444
status_forcelist=[429, 500, 502, 503, 504],
45-
allowed_methods=['GET']
4645
)
4746

4847
adapter = HTTPAdapter(max_retries=retry_strategy)

0 commit comments

Comments
 (0)