[Modify] Polish it

master
sta 6 years ago
parent b811f99e03
commit 710cbbfcef

@ -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);

Loading…
Cancel
Save