Display correct payload in Frame::fmt

pull/337/head
EXPLOSION 2 years ago
parent 657faf427f
commit 5125c59dfa
  1. 2
      src/protocol/frame/frame.rs

@ -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>()
)
}
}

Loading…
Cancel
Save