Skip to content

Commit

Permalink
allow recieving 1005 (No Status) code
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed Jan 7, 2025
1 parent d451010 commit bec3880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/close.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub enum CloseCode {
impl CloseCode {
/// Check if this CloseCode is allowed.
pub fn is_allowed(self) -> bool {
!matches!(self, Bad(_) | Reserved(_) | Status | Abnormal | Tls)
!matches!(self, Bad(_) | Reserved(_) | Abnormal | Tls)
}
}

Expand Down

0 comments on commit bec3880

Please sign in to comment.