mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-29 17:06:18 +02:00
Remove Snapweb from project
This commit is contained in:
parent
0e74570dcc
commit
8fffd6fdec
20 changed files with 82 additions and 36752 deletions
|
@ -29,6 +29,7 @@
|
|||
// local headers
|
||||
#include "common/aixlog.hpp"
|
||||
#include "common/message/pcm_chunk.hpp"
|
||||
#include "common/utils/file_utils.hpp"
|
||||
#include "control_session_ws.hpp"
|
||||
#include "stream_session_ws.hpp"
|
||||
|
||||
|
@ -281,9 +282,8 @@ void ControlSessionHttp::handle_request(http::request<Body, http::basic_fields<A
|
|||
|
||||
if (settings_.doc_root.empty())
|
||||
{
|
||||
std::string default_page = "/usr/share/snapserver/index.html";
|
||||
struct stat buffer;
|
||||
if (stat(default_page.c_str(), &buffer) == 0)
|
||||
static constexpr auto default_page = "/usr/share/snapserver/index.html";
|
||||
if (utils::file::exists(default_page))
|
||||
path = default_page;
|
||||
else
|
||||
return send(unconfigured());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue