fix code.
All checks were successful
Deploy / PullDocker (push) Successful in 8s
Deploy / Build (push) Successful in 2m54s

This commit is contained in:
amass 2024-10-23 21:04:59 +08:00
parent 7185247c12
commit 4f2fef9375
3 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,6 @@
#include "BoostLog.h"
#include "Network/TcpServer.h"
#include "Rtsp/RtspSession.h"
#include <mk_media.h>
class MediaServerPrivate {
public:

View File

@ -39,7 +39,7 @@ Live2dBackend::Live2dBackend() {
std::make_tuple(http::status::ok, request.version())};
res.set(http::field::server, BOOST_BEAST_VERSION_STRING);
res.set(http::field::content_type, ResponseUtility::mimeType(path));
res.set(http::field::access_control_allow_origin, "*");
// res.set(http::field::access_control_allow_origin, "*");
res.content_length(size);
res.keep_alive(request.keep_alive());
session.reply(std::move(res));

View File

@ -3,7 +3,7 @@
base_path=$(pwd)
build_path=${base_path}/build
libraries_root="/opt/Libraries"
server_location=/root/HttpServer
server_location=/root/Server
if command -v cmake >/dev/null 2>&1; then
cmake_exe=cmake