File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -1920,19 +1920,6 @@ private bool validateSecWebSocketVersionServerHeader (string value)
19201920
19211921 #region Internal Methods
19221922
1923- internal static string CheckCloseParameters ( CloseStatusCode code , string reason , bool client )
1924- {
1925- return code == CloseStatusCode . NoStatus
1926- ? ( ! reason . IsNullOrEmpty ( ) ? "NoStatus cannot have a reason." : null )
1927- : code == CloseStatusCode . MandatoryExtension && ! client
1928- ? "MandatoryExtension cannot be used by a server."
1929- : code == CloseStatusCode . ServerError && client
1930- ? "ServerError cannot be used by a client."
1931- : ! reason . IsNullOrEmpty ( ) && reason . UTF8Encode ( ) . Length > 123
1932- ? "A reason has greater than the allowable max size."
1933- : null ;
1934- }
1935-
19361923 internal static bool CheckParametersForClose (
19371924 ushort code , string reason , bool client , out string message
19381925 )
You can’t perform that action at this time.
0 commit comments