lab7: live stand integration fixes and verified evidence

This commit is contained in:
2026-11-26 19:17:22 +03:00
parent 33cec9bb7a
commit 210d645e28
47 changed files with 50612 additions and 80 deletions
+2 -2
View File
@@ -611,8 +611,6 @@ def https_request(method, url, headers=None, body=None, ssl_ctx=None, timeout=10
peer_cert = None
try:
conn.request(method, path, body=raw_body, headers=req_headers)
resp = conn.getresponse()
data = resp.read()
if parsed.scheme == 'https' and conn.sock is not None:
der = conn.sock.getpeercert(binary_form=True)
if der:
@@ -621,6 +619,8 @@ def https_request(method, url, headers=None, body=None, ssl_ctx=None, timeout=10
'sha256': hashlib.sha256(der).hexdigest().upper(),
'version': conn.sock.version(),
}
resp = conn.getresponse()
data = resp.read()
resp_headers = {k.lower(): v for k, v in resp.getheaders()}
return {
'status': resp.status,