File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments