Skip to content

Revert encode to padded base32/base64 output#92

Merged
maeb merged 1 commit intomasterfrom
fix/digest-encoding
Mar 24, 2026
Merged

Revert encode to padded base32/base64 output#92
maeb merged 1 commit intomasterfrom
fix/digest-encoding

Conversation

@maeb
Copy link
Copy Markdown
Member

@maeb maeb commented Mar 24, 2026

Most WARC implementations write padded base32/base64 digest values. The WARC spec issue #48 acknowledges this as existing practice and proposes fixing the grammar rather than changing implementations.

Revert encode() to use standard padded encodings (base32.StdEncoding, base64.StdEncoding). The read path continues to accept both padded and unpadded digests for backward compatibility.

Most WARC implementations write padded base32/base64 digest values.
The WARC spec issue #48 acknowledges this as existing practice and
proposes fixing the grammar rather than changing implementations.

Revert encode() to use standard padded encodings (base32.StdEncoding,
base64.StdEncoding). The read path continues to accept both padded
and unpadded digests for backward compatibility.
@maeb maeb merged commit 9881784 into master Mar 24, 2026
2 checks passed
@maeb maeb deleted the fix/digest-encoding branch March 24, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant