Modified HTTP auth for HttpListener class

This commit is contained in:
sta
2014-11-21 15:07:25 +09:00
parent 55527ef514
commit b521456dd6
3 changed files with 74 additions and 70 deletions

View File

@@ -59,6 +59,7 @@ namespace WebSocketSharp.Net
private static readonly byte[] _100continue;
private string[] _acceptTypes;
private bool _authenticated;
private bool _chunked;
private Encoding _contentEncoding;
private long _contentLength;
@@ -241,8 +242,11 @@ namespace WebSocketSharp.Net
/// </value>
public bool IsAuthenticated {
get {
var user = _context.User;
return user != null && user.Identity.IsAuthenticated;
return _authenticated;
}
internal set {
_authenticated = value;
}
}