diff --git a/src/output/output_http_internal.cpp b/src/output/output_http_internal.cpp index 936dd016..9e4f05b3 100644 --- a/src/output/output_http_internal.cpp +++ b/src/output/output_http_internal.cpp @@ -232,7 +232,7 @@ namespace Mist { H.Clean(); H.SetHeader("Content-Type", "application/smil"); - H.SetHeader("Server", "mistserver/" PACKAGE_VERSION "/" + Util::Config::libver); + H.SetHeader("Server", "MistServer/" PACKAGE_VERSION); H.setCORSHeaders(); H.SetBody("\n \n \n \n \n \n"+trackSources+" \n \n"); H.SendResponse("200", "OK", myConn); @@ -247,7 +247,7 @@ namespace Mist { host.resize(host.find(':')); } H.Clean(); - H.SetHeader("Server", "mistserver/" PACKAGE_VERSION); + H.SetHeader("Server", "MistServer/" PACKAGE_VERSION); H.setCORSHeaders(); if (rURL.substr(0, 6) != "/json_"){ H.SetHeader("Content-Type", "application/javascript"); @@ -267,7 +267,9 @@ namespace Mist { configLock.post(); //Stream metadata not found - attempt to start it if (Util::startInput(streamName)){ - streamIndex.init(streamName, DEFAULT_META_PAGE_SIZE); + char pageId[NAME_BUFFER_SIZE]; + snprintf(pageId, NAME_BUFFER_SIZE, SHM_STREAM_INDEX, streamName.c_str()); + streamIndex.init(pageId, DEFAULT_META_PAGE_SIZE); if (streamIndex.mapped){ metaLock = true; metaLocker.wait();