Add pcre status to config response

This commit is contained in:
jcorporation 2022-09-27 17:47:01 +02:00
parent 512cd7b0de
commit 07a0369b74
2 changed files with 5 additions and 0 deletions

View File

@ -1600,6 +1600,7 @@ Reflection
- ``music_directory``: The absolute path of the music directory. - ``music_directory``: The absolute path of the music directory.
- ``playlist_directory``: The absolute path of the playlist directory. - ``playlist_directory``: The absolute path of the playlist directory.
- ``pcre``: Indicates pcre support.
.. _command_commands: .. _command_commands:

View File

@ -395,6 +395,10 @@ handle_config(Client &client, [[maybe_unused]] Request args, Response &r)
if (const auto spl_path = map_spl_path(); !spl_path.IsNull()) if (const auto spl_path = map_spl_path(); !spl_path.IsNull())
r.Fmt(FMT_STRING("playlist_directory: {}\n"), spl_path.ToUTF8()); r.Fmt(FMT_STRING("playlist_directory: {}\n"), spl_path.ToUTF8());
#ifdef HAVE_PCRE
r.Write("pcre: 1\n");
#endif
return CommandResult::OK; return CommandResult::OK;
} }