v3.28.6: keep the PoR delivered with a 91xx ENVELOPE answer

A card may deliver the response packet (the PoR) in the GET RESPONSE of
an ENVELOPE that answered 61xx and signal a proactive command pending in
the same answer (91xx - the CAT success state, not an error).
_send_envelope ran the chain and then cleared the response data
(`data, sw = '', '9000'`), so the operation reported no PoR although the
card had returned one (live 2026-10-14: a GP DELETE answered 6113, the
GET RESPONSE delivered the PoR with 9130, and the delete verdict showed
"ok (no PoR)").

The delivered bytes are kept now; the chain still runs and the exchange
reports 9000.  Test: the delivered PoR survives the chain (verified to
fail on the old code).  917 frontend + 928 Python; sw cache simple-v444.
This commit is contained in:
2026-10-14 22:55:27 +03:00
parent 855c9f40b1
commit 408ad87a0e
5 changed files with 30 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
const CACHE = 'simple-v443';
const CACHE = 'simple-v444';
const URLS = [
'index.html',
'help.html',