feat: complete lab 7 grade 4 security controls and report

This commit is contained in:
Dmitrii Grishko
2026-11-15 21:58:27 +03:00
parent c5e3ac3aff
commit c69d735692
52 changed files with 1124 additions and 129 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ def request(context, path, *, body=None, token="", status=200):
try:
with urlopen(req, context=context, timeout=5) as response:
assert response.status == status, (path, response.status, status)
return json.load(response)
return json.load(response) if response.status != 204 else None
except HTTPError as error:
assert error.code == status, (path, error.code, status)