Merge pull request #38 from hubertmis/fix-block2-payload

Fix payload transmitted in Block2 transfer
This commit is contained in:
Giacomo Tanganelli 2021-01-17 11:54:41 +01:00 committed by GitHub
commit a07ab65dd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,7 @@ class BlockLayer(object):
del transaction.request.block2
else:
# early negotiation
byte = 0
byte = num * size
self._block2_receive[key_token] = BlockItem(byte, num, m, size)
del transaction.request.block2