[Modify] Polish it

This commit is contained in:
sta 2019-07-28 21:27:12 +09:00
parent b811f99e03
commit 710cbbfcef

View File

@ -192,7 +192,8 @@ namespace WebSocketSharp
} }
internal static void CloseWithAuthChallenge ( internal static void CloseWithAuthChallenge (
this HttpListenerResponse response, string challenge) this HttpListenerResponse response, string challenge
)
{ {
response.Headers.InternalSet ("WWW-Authenticate", challenge, true); response.Headers.InternalSet ("WWW-Authenticate", challenge, true);
response.Close (HttpStatusCode.Unauthorized); response.Close (HttpStatusCode.Unauthorized);