mirror of
https://github.com/apple/swift-nio-imap
synced 2026-11-28 05:14:27 +00:00
The parser base64-decodes `mechanism-base64`, but the encoder wrote the decoded bytes raw: parse `INTERNAL=YQ==` → "a" → `INTERNAL=a`. A proxy re-encoding `[URLMECH INTERNAL X=<base64 of CRLF…>]` emitted raw CRLF. RFC 4467: `mechanism-base64 = mechanism ["=" base64]`. Encode on write; fix the fixtures that locked in the mismatch.