[Modify] Rename it
This commit is contained in:
parent
51596564fc
commit
e6fcd43fa5
@ -56,7 +56,7 @@ namespace WebSocketSharp.Net
|
|||||||
#region Private Fields
|
#region Private Fields
|
||||||
|
|
||||||
private HttpConnection _connection;
|
private HttpConnection _connection;
|
||||||
private string _error;
|
private string _errorMessage;
|
||||||
private int _errorStatus;
|
private int _errorStatus;
|
||||||
private HttpListener _listener;
|
private HttpListener _listener;
|
||||||
private HttpListenerRequest _request;
|
private HttpListenerRequest _request;
|
||||||
@ -88,11 +88,11 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
internal string ErrorMessage {
|
internal string ErrorMessage {
|
||||||
get {
|
get {
|
||||||
return _error;
|
return _errorMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
set {
|
set {
|
||||||
_error = value;
|
_errorMessage = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
internal bool HasError {
|
internal bool HasError {
|
||||||
get {
|
get {
|
||||||
return _error != null;
|
return _errorMessage != null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -212,8 +212,8 @@ namespace WebSocketSharp.Net
|
|||||||
"<html><body><h1>{0} {1}", _errorStatus, _response.StatusDescription
|
"<html><body><h1>{0} {1}", _errorStatus, _response.StatusDescription
|
||||||
);
|
);
|
||||||
|
|
||||||
if (_error != null && _error.Length > 0)
|
if (_errorMessage != null && _errorMessage.Length > 0)
|
||||||
content.AppendFormat (" ({0})</h1></body></html>", _error);
|
content.AppendFormat (" ({0})</h1></body></html>", _errorMessage);
|
||||||
else
|
else
|
||||||
content.Append ("</h1></body></html>");
|
content.Append ("</h1></body></html>");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user