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