From 6ba60f7329811a4bb3a07b1e6d81156d7f3a4ac3 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 12 Jan 2025 17:57:49 +0100 Subject: Added MIDIPlayer (WIP) --- midiplay.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'midiplay.cpp') diff --git a/midiplay.cpp b/midiplay.cpp index 75f33da..d5c0ef0 100644 --- a/midiplay.cpp +++ b/midiplay.cpp @@ -1,3 +1,5 @@ +#include "MIDIPlayer.h" + #include #include @@ -17,7 +19,7 @@ std::string getPostData(FCGX_Request& request) unsigned int status = FCGX_GetStr(result.data(), result.size(), request.in); if (status != result.size()) { - return fmt::format("Read error: {}/{}", status, result); + return fmt::format("Read error: {}/{}", status, result.size()); } return result; @@ -46,8 +48,9 @@ int main(int argc, char* argv[]) { FCGX_PutS("Content-Type: text/xml\r\n\r\n", request.out); std::string data = getPostData(request); - if (data == "3") + if (data == "3") { FCGX_PutS("4", request.out); + } } else { FCGX_PutS("Content-Type: text/text\r\n\r\n", request.out); FCGX_PutS("Bad request method: POST expected", request.out); -- cgit v1.2.3