[Modify] Replace it
This commit is contained in:
		@@ -879,11 +879,10 @@ namespace WebSocketSharp
 | 
				
			|||||||
      if (!customCheckHandshakeRequest (_context, out msg)) {
 | 
					      if (!customCheckHandshakeRequest (_context, out msg)) {
 | 
				
			||||||
        _logger.Error (msg);
 | 
					        _logger.Error (msg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        var res = createHandshakeFailureResponse (HttpStatusCode.BadRequest);
 | 
					        refuseHandshake (
 | 
				
			||||||
        sendHttpResponse (res);
 | 
					          CloseStatusCode.PolicyViolation,
 | 
				
			||||||
 | 
					          "A handshake error has occurred while attempting to accept."
 | 
				
			||||||
        msg = "A handshake error has occurred while attempting to accept.";
 | 
					        );
 | 
				
			||||||
        fatal (msg, CloseStatusCode.PolicyViolation);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return false;
 | 
					        return false;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user