From: Torsten Dreyer Date: Thu, 2 Oct 2014 09:13:12 +0000 (+0200) Subject: httpd: fix mjpeg encoding X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cc526174c110a432b8898fede247f8034a8f6072;p=flightgear.git httpd: fix mjpeg encoding --- diff --git a/src/Network/http/ScreenshotUriHandler.cxx b/src/Network/http/ScreenshotUriHandler.cxx index e856ba6ef..c072c303b 100644 --- a/src/Network/http/ScreenshotUriHandler.cxx +++ b/src/Network/http/ScreenshotUriHandler.cxx @@ -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(screenshot.size()); s += "\r\n\r\n";