Skip to content

Commit e3d4e0f

Browse files
committed
fixup
1 parent 955f7e5 commit e3d4e0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mitmproxy-contentviews/src/hex_stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl Prettify for HexStream {
3838
impl Reencode for HexStream {
3939
fn reencode(&self, data: &str, _metadata: &dyn Metadata) -> Result<Vec<u8>> {
4040
let data = data.trim_end_matches(['\n', '\r']);
41-
if data.len().is_multiple_of(2) {
41+
if !data.len().is_multiple_of(2) {
4242
anyhow::bail!("Invalid hex string: uneven number of characters");
4343
}
4444
data_encoding::HEXLOWER_PERMISSIVE

0 commit comments

Comments
 (0)