[Modify] Polish it
This commit is contained in:
parent
dea8220e69
commit
b81756945d
@ -582,6 +582,12 @@ namespace WebSocketSharp.Net
|
||||
|
||||
private void finishInitialization10 ()
|
||||
{
|
||||
var transferEnc = _headers["Transfer-Encoding"];
|
||||
if (transferEnc != null) {
|
||||
_context.ErrorMessage = "Invalid Transfer-Encoding header";
|
||||
return;
|
||||
}
|
||||
|
||||
if (_httpMethod == "POST") {
|
||||
if (_contentLength == -1) {
|
||||
_context.ErrorMessage = "Content-Length header required";
|
||||
@ -593,12 +599,6 @@ namespace WebSocketSharp.Net
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
var transferEnc = _headers["Transfer-Encoding"];
|
||||
if (transferEnc != null) {
|
||||
_context.ErrorMessage = "Invalid Transfer-Encoding header";
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
private Encoding getContentEncoding ()
|
||||
|
Loading…
Reference in New Issue
Block a user