From 6d1199c95c5ada9ff05e7b4cabf30599d2c7d16f Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Wed, 10 Apr 2019 05:30:36 +0300 Subject: [PATCH] paranoid access for some reasons --- kvmd/plugins/auth/http.py | 1 + 1 file changed, 1 insertion(+) 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)