[Modify] Polish it
This commit is contained in:
parent
7a67c0b3d6
commit
05a94817d3
@ -905,11 +905,14 @@ namespace WebSocketSharp.Server
|
|||||||
? OnTrace
|
? OnTrace
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
if (evt != null)
|
if (evt == null) {
|
||||||
evt (this, new HttpRequestEventArgs (context, _docRootPath));
|
context.ErrorStatusCode = 501;
|
||||||
else
|
context.SendError ();
|
||||||
context.Response.StatusCode = 501; // Not Implemented
|
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
evt (this, new HttpRequestEventArgs (context, _docRootPath));
|
||||||
context.Response.Close ();
|
context.Response.Close ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user