[Fix] Set HTTP status code 404

This commit is contained in:
sta 2016-06-13 16:13:15 +09:00
parent cab803cca7
commit f398f7f05b

View File

@ -288,7 +288,7 @@ namespace WebSocketSharp.Net
} }
if (!conn._listener.BindHttpListenerTo (conn._context)) { if (!conn._listener.BindHttpListenerTo (conn._context)) {
conn.SendError ("Invalid host", 400); conn.SendError (null, 404);
return; return;
} }