[Modify] Rename it
This commit is contained in:
parent
6ceabd7022
commit
8d1e0d4b1e
@ -1501,7 +1501,7 @@ namespace WebSocketSharp
|
||||
/// <exception cref="ArgumentException">
|
||||
/// <paramref name="protocol"/> is an empty string.
|
||||
/// </exception>
|
||||
public static bool IsUpgradeTo (
|
||||
public static bool IsUpgradeRequest (
|
||||
this HttpListenerRequest request, string protocol
|
||||
)
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user