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