[Modify] Rename it
This commit is contained in:
parent
6ceabd7022
commit
8d1e0d4b1e
@ -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
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user