1
0
Fork 0

httpd: fix mjpeg encoding

This commit is contained in:
Torsten Dreyer 2014-10-02 11:13:12 +02:00
parent c0c82f4f7b
commit cc526174c1

View file

@ -405,7 +405,7 @@ bool ScreenshotUriHandler::poll(Connection * connection)
SG_LOG(SG_NETWORK, SG_DEBUG, "Screenshot is ready, size=" << screenshot.size());
if (screenshotRequest->isStream()) {
string s("\r\n" BOUNDARY "\r\nContent-Type: image/");
string s( BOUNDARY "\r\nContent-Type: image/");
s.append(screenshotRequest->getType()).append("\r\nContent-Length:");
s += boost::lexical_cast<string>(screenshot.size());
s += "\r\n\r\n";