Skip to content

Commit

Permalink
Display correct payload in Frame::fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
A5rocks committed Feb 11, 2023
1 parent 657faf4 commit 5125c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol/frame/frame.rs
Expand Up @@ -385,7 +385,7 @@ payload: 0x{}
// self.mask.map(|mask| format!("{:?}", mask)).unwrap_or("NONE".into()),
self.len(),
self.payload.len(),
self.payload.iter().map(|byte| format!("{:x}", byte)).collect::<String>()
self.payload.iter().map(|byte| format!("{:02x}", byte)).collect::<String>()
)
}
}
Expand Down

0 comments on commit 5125c59

Please sign in to comment.