From 4f2fef9375d7513a50897bc5b3ebb28425793191 Mon Sep 17 00:00:00 2001 From: amass <168062547@qq.com> Date: Wed, 23 Oct 2024 21:04:59 +0800 Subject: [PATCH] fix code. --- MediaServer/MediaServer.cpp | 1 - Server/Live2dBackend.cpp | 2 +- resource/build.sh | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/MediaServer/MediaServer.cpp b/MediaServer/MediaServer.cpp index fd6525f..91b26b1 100644 --- a/MediaServer/MediaServer.cpp +++ b/MediaServer/MediaServer.cpp @@ -2,7 +2,6 @@ #include "BoostLog.h" #include "Network/TcpServer.h" #include "Rtsp/RtspSession.h" -#include class MediaServerPrivate { public: diff --git a/Server/Live2dBackend.cpp b/Server/Live2dBackend.cpp index cdcffcf..bdbc37b 100644 --- a/Server/Live2dBackend.cpp +++ b/Server/Live2dBackend.cpp @@ -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)); diff --git a/resource/build.sh b/resource/build.sh index 984b29c..e5fbc09 100755 --- a/resource/build.sh +++ b/resource/build.sh @@ -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