diff options
author | Devaev Maxim <[email protected]> | 2019-04-10 05:30:36 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-04-10 05:30:36 +0300 |
commit | 6d1199c95c5ada9ff05e7b4cabf30599d2c7d16f (patch) | |
tree | c1a8109008119e609a42143d6acc01e90d004cdf /kvmd | |
parent | fdba228eed5823c5082822ed00e711c449deb940 (diff) |
paranoid access for some reasons
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/plugins/auth/http.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kvmd/plugins/auth/http.py b/kvmd/plugins/auth/http.py index e199069d..16c6500d 100644 --- a/kvmd/plugins/auth/http.py +++ b/kvmd/plugins/auth/http.py @@ -90,6 +90,7 @@ class Plugin(BaseAuthService): try: async with session.request(**kwargs) as response: response.raise_for_status() + assert response.status == 200 return True except Exception: get_logger().exception("Failed HTTP auth request for user %r", user) |