Removed deprecated MistMultiplex header

This commit is contained in:
Thulinma 2017-03-16 11:14:03 +01:00
parent e3c01be431
commit 27b85e76d3

View file

@ -511,10 +511,6 @@ namespace Mist {
std::stringstream rangeReply; std::stringstream rangeReply;
rangeReply << "bytes " << byteStart << "-" << byteEnd << "/" << fileSize; rangeReply << "bytes " << byteStart << "-" << byteEnd << "/" << fileSize;
H.SetHeader("Content-Length", byteEnd - byteStart + 1); H.SetHeader("Content-Length", byteEnd - byteStart + 1);
//do not multiplex requests that are > 1MiB
if (byteEnd - byteStart + 1 > 1024*1024){
H.SetHeader("MistMultiplex", "No");
}
H.SetHeader("Content-Range", rangeReply.str()); H.SetHeader("Content-Range", rangeReply.str());
/// \todo Switch to chunked? /// \todo Switch to chunked?
H.SendResponse("206", "Partial content", myConn); H.SendResponse("206", "Partial content", myConn);
@ -522,8 +518,6 @@ namespace Mist {
} }
}else{ }else{
H.SetHeader("Content-Length", byteEnd - byteStart + 1); H.SetHeader("Content-Length", byteEnd - byteStart + 1);
//do not multiplex requests that aren't ranged
H.SetHeader("MistMultiplex", "No");
/// \todo Switch to chunked? /// \todo Switch to chunked?
H.SendResponse("200", "OK", myConn); H.SendResponse("200", "OK", myConn);
//HTTP_S.StartResponse(HTTP_R, conn); //HTTP_S.StartResponse(HTTP_R, conn);