[Modify] Rename it

This commit is contained in:
sta 2017-12-21 20:18:03 +09:00
parent 6ceabd7022
commit 8d1e0d4b1e
2 changed files with 2 additions and 2 deletions

View File

@ -1501,7 +1501,7 @@ namespace WebSocketSharp
/// <exception cref="ArgumentException"> /// <exception cref="ArgumentException">
/// <paramref name="protocol"/> is an empty string. /// <paramref name="protocol"/> is an empty string.
/// </exception> /// </exception>
public static bool IsUpgradeTo ( public static bool IsUpgradeRequest (
this HttpListenerRequest request, string protocol this HttpListenerRequest request, string protocol
) )
{ {

View File

@ -944,7 +944,7 @@ namespace WebSocketSharp.Server
ThreadPool.QueueUserWorkItem ( ThreadPool.QueueUserWorkItem (
state => { state => {
try { try {
if (ctx.Request.IsUpgradeTo ("websocket")) { if (ctx.Request.IsUpgradeRequest ("websocket")) {
processRequest (ctx.AcceptWebSocket (null)); processRequest (ctx.AcceptWebSocket (null));
return; return;
} }