Don't output \r\n before boundary. This throws off some clients.

This commit is contained in:
Peter Johnson
2016-11-18 19:52:22 -08:00
parent ec8c0eb3c2
commit ae8c8ec230

View File

@@ -526,7 +526,7 @@ void MJPEGServerImpl::ConnThread::SendStream(wpi::raw_socket_ostream& os) {
// with firefox
double timestamp = frame.time() / 10000000.0;
header.clear();
oss << "\r\n--" BOUNDARY "\r\n"
oss << "--" BOUNDARY "\r\n"
<< "Content-Type: image/jpeg\r\n"
<< "Content-Length: " << size << "\r\n"
<< "X-Timestamp: " << timestamp << "\r\n"