Skip to content

Commit 6ddafd2

Browse files
committed
Add some AD suggested wording to content coding decoding discussion
Fixes #3356
1 parent 9dee118 commit 6ddafd2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

draft-ietf-httpbis-unencoded-digest.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,13 @@ needs to decode all encodings in order before validation.
236236

237237
Since the digest is calculated on unencoded representation bytes, validation of
238238
a message with content codings (as described above) can only succeed where the
239-
decoded output produces the same byte sequence as the input. While many
240-
registered content codings behave this way, there is no requirement for them to
241-
do so and it remains a possibility that decoding could produce a
242-
different byte sequence. In order to avoid unintended validation failures, care
243-
is advised when selecting content codings for use with `Unencoded-Digest`.
239+
decoded output produces the same byte sequence as the input. While {{Section
240+
8.4.1 of !HTTP=RFC9110}} describes content codings to operate "without loss of
241+
information", that doesn't necessarily mean a byte-for-byte equivalence. Many
242+
registered content codings do provide equivalence but there is no requirement
243+
for it; it remains a possibility that decoding could produce a different byte
244+
sequence. In order to avoid unintended validation failures, care is advised when
245+
selecting content codings for use with `Unencoded-Digest`.
244246

245247

246248
# Integrity Fields are Complementary

0 commit comments

Comments
 (0)