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