Skip to content

Commit 4a0ac8e

Browse files
committed
[Modify] Remove it
1 parent 46ef552 commit 4a0ac8e

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

websocket-sharp/WebSocket.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,21 +1920,6 @@ private bool validateSecWebSocketVersionServerHeader (string value)
19201920

19211921
#region Internal Methods
19221922

1923-
internal static string CheckCloseParameters (ushort code, string reason, bool client)
1924-
{
1925-
return !code.IsCloseStatusCode ()
1926-
? "An invalid close status code."
1927-
: code == (ushort) CloseStatusCode.NoStatus
1928-
? (!reason.IsNullOrEmpty () ? "NoStatus cannot have a reason." : null)
1929-
: code == (ushort) CloseStatusCode.MandatoryExtension && !client
1930-
? "MandatoryExtension cannot be used by a server."
1931-
: code == (ushort) CloseStatusCode.ServerError && client
1932-
? "ServerError cannot be used by a client."
1933-
: !reason.IsNullOrEmpty () && reason.UTF8Encode ().Length > 123
1934-
? "A reason has greater than the allowable max size."
1935-
: null;
1936-
}
1937-
19381923
internal static string CheckCloseParameters (CloseStatusCode code, string reason, bool client)
19391924
{
19401925
return code == CloseStatusCode.NoStatus

0 commit comments

Comments
 (0)