From cc526174c110a432b8898fede247f8034a8f6072 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Thu, 2 Oct 2014 11:13:12 +0200 Subject: [PATCH] httpd: fix mjpeg encoding --- src/Network/http/ScreenshotUriHandler.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.39.5