Merge pull request #337 from A5rocks/fix-frame-display

Display correct payload in Frame::fmt
permessage-deflate
Daniel Abramov 2 years ago committed by GitHub
commit e1033afd95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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