summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-04-10 05:30:36 +0300
committerDevaev Maxim <[email protected]>2019-04-10 05:30:36 +0300
commit6d1199c95c5ada9ff05e7b4cabf30599d2c7d16f (patch)
treec1a8109008119e609a42143d6acc01e90d004cdf
parentfdba228eed5823c5082822ed00e711c449deb940 (diff)
paranoid access for some reasons
-rw-r--r--kvmd/plugins/auth/http.py1
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)