mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
[api] fix: not accepting all possible GET requests success responses
This commit is contained in:
@@ -43,7 +43,7 @@ class HttpClient:
|
||||
else:
|
||||
res = requests.get(url, **args)
|
||||
|
||||
if res.status_code == 200:
|
||||
if 200 <= res.status_code < 300:
|
||||
return res
|
||||
|
||||
if single_call:
|
||||
|
||||
Reference in New Issue
Block a user