fix code.
This commit is contained in:
parent
7185247c12
commit
4f2fef9375
@ -2,7 +2,6 @@
|
|||||||
#include "BoostLog.h"
|
#include "BoostLog.h"
|
||||||
#include "Network/TcpServer.h"
|
#include "Network/TcpServer.h"
|
||||||
#include "Rtsp/RtspSession.h"
|
#include "Rtsp/RtspSession.h"
|
||||||
#include <mk_media.h>
|
|
||||||
|
|
||||||
class MediaServerPrivate {
|
class MediaServerPrivate {
|
||||||
public:
|
public:
|
||||||
|
@ -39,7 +39,7 @@ Live2dBackend::Live2dBackend() {
|
|||||||
std::make_tuple(http::status::ok, request.version())};
|
std::make_tuple(http::status::ok, request.version())};
|
||||||
res.set(http::field::server, BOOST_BEAST_VERSION_STRING);
|
res.set(http::field::server, BOOST_BEAST_VERSION_STRING);
|
||||||
res.set(http::field::content_type, ResponseUtility::mimeType(path));
|
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.content_length(size);
|
||||||
res.keep_alive(request.keep_alive());
|
res.keep_alive(request.keep_alive());
|
||||||
session.reply(std::move(res));
|
session.reply(std::move(res));
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
base_path=$(pwd)
|
base_path=$(pwd)
|
||||||
build_path=${base_path}/build
|
build_path=${base_path}/build
|
||||||
libraries_root="/opt/Libraries"
|
libraries_root="/opt/Libraries"
|
||||||
server_location=/root/HttpServer
|
server_location=/root/Server
|
||||||
|
|
||||||
if command -v cmake >/dev/null 2>&1; then
|
if command -v cmake >/dev/null 2>&1; then
|
||||||
cmake_exe=cmake
|
cmake_exe=cmake
|
||||||
|
Loading…
Reference in New Issue
Block a user