Though, I think it would be good to also have a test in here for the case where a very long header does contain whitespace, but if we only folded there then the folded lines would still be too long, such that we need to encode anyway. Something like ("x" x 80) . " " . ("x" x 80)
Skimming the corresponding PR, I think this is already handled correctly (by the various comparisons against 74). But a regression test would be nice in case we break it somehow in the future.
Though, I think it would be good to also have a test in here for the case where a very long header does contain whitespace, but if we only folded there then the folded lines would still be too long, such that we need to encode anyway. Something like
("x" x 80) . " " . ("x" x 80)
Skimming the corresponding PR, I think this is already handled correctly (by the various comparisons against
74
). But a regression test would be nice in case we break it somehow in the future.