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

This reverts commit ae8c8ec230.
This commit is contained in:
Peter Johnson
2016-11-30 21:50:15 -08:00
parent da68fea081
commit ef39713219

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 << "--" BOUNDARY "\r\n"
oss << "\r\n--" BOUNDARY "\r\n"
<< "Content-Type: image/jpeg\r\n"
<< "Content-Length: " << size << "\r\n"
<< "X-Timestamp: " << timestamp << "\r\n"