From cbaf4107f922a9fd61841e1f305c34e13d5f0158 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 5 Apr 2016 10:05:11 +0200 Subject: [PATCH] Silly mistake is silly. --- src/output/output_http.cpp | 2 +- src/output/output_http.h | 2 +- src/output/output_progressive_flv.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/output/output_http.cpp b/src/output/output_http.cpp index eb5ca745..b7c24ec8 100644 --- a/src/output/output_http.cpp +++ b/src/output/output_http.cpp @@ -410,7 +410,7 @@ namespace Mist { WARN_MSG("Requested to send a HTTP response but the given message is empty. Trying though."); } - H.SendResponse(message, code, myConn); + H.SendResponse(code, message, myConn); } /*end-roxlu*/ } diff --git a/src/output/output_http.h b/src/output/output_http.h index 38d8067d..18791979 100644 --- a/src/output/output_http.h +++ b/src/output/output_http.h @@ -22,7 +22,7 @@ namespace Mist { void reConnector(std::string & connector); std::string getHandler(); /*begin-roxlu*/ - void sendResponse(std::string message, std::string code = "200"); + void sendResponse(std::string message = "OK", std::string code = "200"); /*end-roxlu*/ protected: HTTP::Parser H; diff --git a/src/output/output_progressive_flv.cpp b/src/output/output_progressive_flv.cpp index f4c9a98d..0e017d33 100644 --- a/src/output/output_progressive_flv.cpp +++ b/src/output/output_progressive_flv.cpp @@ -44,7 +44,7 @@ namespace Mist { H.SetHeader("Content-Type", "video/x-flv"); H.protocol = "HTTP/1.0"; H.setCORSHeaders(); - sendResponse("OK"); + sendResponse(); myConn.SendNow(FLV::Header, 13); tag.DTSCMetaInit(myMeta, selectedTracks); myConn.SendNow(tag.data, tag.len);