[Modify] Rename it
This commit is contained in:
parent
7615410759
commit
b4b4443e49
@ -325,7 +325,7 @@ namespace WebSocketSharp.Net
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
conn._context.ErrorStatus = 404;
|
conn._context.ErrorStatusCode = 404;
|
||||||
|
|
||||||
conn._context.SendError ();
|
conn._context.SendError ();
|
||||||
|
|
||||||
@ -358,7 +358,7 @@ namespace WebSocketSharp.Net
|
|||||||
if (conn._timeoutCanceled[current])
|
if (conn._timeoutCanceled[current])
|
||||||
return;
|
return;
|
||||||
|
|
||||||
conn._context.ErrorStatus = 408;
|
conn._context.ErrorStatusCode = 408;
|
||||||
|
|
||||||
conn._context.SendError ();
|
conn._context.SendError ();
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal int ErrorStatus {
|
internal int ErrorStatusCode {
|
||||||
get {
|
get {
|
||||||
return _errorStatusCode;
|
return _errorStatusCode;
|
||||||
}
|
}
|
||||||
|
@ -705,7 +705,7 @@ namespace WebSocketSharp.Net
|
|||||||
var comparison = StringComparison.OrdinalIgnoreCase;
|
var comparison = StringComparison.OrdinalIgnoreCase;
|
||||||
if (!transferEnc.Equals ("chunked", comparison)) {
|
if (!transferEnc.Equals ("chunked", comparison)) {
|
||||||
_context.ErrorMessage = String.Empty;
|
_context.ErrorMessage = String.Empty;
|
||||||
_context.ErrorStatus = 501;
|
_context.ErrorStatusCode = 501;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -716,7 +716,7 @@ namespace WebSocketSharp.Net
|
|||||||
if (_httpMethod == "POST" || _httpMethod == "PUT") {
|
if (_httpMethod == "POST" || _httpMethod == "PUT") {
|
||||||
if (_contentLength <= 0 && !_chunked) {
|
if (_contentLength <= 0 && !_chunked) {
|
||||||
_context.ErrorMessage = String.Empty;
|
_context.ErrorMessage = String.Empty;
|
||||||
_context.ErrorStatus = 411;
|
_context.ErrorStatusCode = 411;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user