Closed qwertyxcv83 closed 1 year ago
Websocket::close panics when status_description.is_some() due to length requirement of BigEndian::write_u16. Maybe replace Vec::new() with Vec::from_slice(&[0; 2]).unwrap().
Websocket::close
status_description.is_some()
BigEndian::write_u16
Vec::new()
Vec::from_slice(&[0; 2]).unwrap()
Fixed! Thanks for bringing this to my attention.
Websocket::close
panics whenstatus_description.is_some()
due to length requirement ofBigEndian::write_u16
. Maybe replaceVec::new()
withVec::from_slice(&[0; 2]).unwrap()
.