MerkleIntegritySourceStream: Update the treatment of empty payload
This makes MerkleIntegritySourceStream match the new behavior of draft-thomson-http-mice-03 [1], where the encoding of an empty payload does not have the 8-byte record size. Also, after this patch the final record must not be empty. Empty final records were allowed because http-mice-02 couldn't represent the empty payload otherwise. [1] https://tools.ietf.org/html/draft-thomson-http-mice-03#section-2 Bug: 875721 Change-Id: I2e2003603fb9f3d9baf4cf369cf9487b8990bcf8 Reviewed-on: https://chromium-review.googlesource.com/1183044 Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org> Reviewed-by:Kouhei Ueno <kouhei@chromium.org> Reviewed-by:
David Benjamin <davidben@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Cr-Commit-Position: refs/heads/master@{#585383}
Showing
Please register or sign in to comment