forked from mtusi2026/mtusi2026lab7
feat: complete lab 7 grade 4 security controls and report
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user