diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index 2d8e1ea2..1f32ef8f 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -1501,7 +1501,7 @@ namespace WebSocketSharp /// /// is an empty string. /// - public static bool IsUpgradeTo ( + public static bool IsUpgradeRequest ( this HttpListenerRequest request, string protocol ) { diff --git a/websocket-sharp/Server/HttpServer.cs b/websocket-sharp/Server/HttpServer.cs index 30b9d79a..e3436191 100644 --- a/websocket-sharp/Server/HttpServer.cs +++ b/websocket-sharp/Server/HttpServer.cs @@ -944,7 +944,7 @@ namespace WebSocketSharp.Server ThreadPool.QueueUserWorkItem ( state => { try { - if (ctx.Request.IsUpgradeTo ("websocket")) { + if (ctx.Request.IsUpgradeRequest ("websocket")) { processRequest (ctx.AcceptWebSocket (null)); return; }