Skip to content

Commit 8911920

Browse files
author
LittleYang0531
committed
Update: libonedrive
1 parent f7a8b55 commit 8911920

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

make

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ WHITE='\033[0m'
66
YELLOW='\033[0;33m'
77

88
# Compile
9-
echo -e "${YELLOW}Compiling Sonolus Server using g++...${WHITE}"
10-
g++ main.cpp -o sonolus\
11-
-ldl -lpthread -lcrypto -lssl -ljsoncpp -std=c++14 -lz -g -w \
12-
-DENABLE_SONOLUS -DENABLE_MYSQL -lmysqlclient -DENABLE_SQLITE -lsqlite3 -DENABLE_CURL -lcurl -DENABLE_ZIP -lzip
9+
# echo -e "${YELLOW}Compiling Sonolus Server using g++...${WHITE}"
10+
# g++ main.cpp -o sonolus\
11+
# -ldl -lpthread -lcrypto -lssl -ljsoncpp -std=c++14 -lz -g -w \
12+
# -DENABLE_SONOLUS -DENABLE_MYSQL -lmysqlclient -DENABLE_SQLITE -lsqlite3 -DENABLE_CURL -lcurl -DENABLE_ZIP -lzip
1313
# echo -e "${YELLOW}Compiling libsonolush using g++...${WHITE}"
1414
# g++ plugins/libsonolush/libsonolush.cpp -o plugins/libsonolush.so \
1515
# -g -std=c++17 -fPIC -shared -w\
1616
# -DENABLE_SONOLUS -DENABLE_MYSQL -DENABLE_SQLITE -DENABLE_CURL -DENABLE_ZIP
17-
# echo -e "${YELLOW}Compiling libonedrive using g++...${WHITE}"
18-
# g++ plugins/libonedrive/libonedrive.cpp -o plugins/libonedrive.so \
19-
# -ldl -lpthread -lcrypto -lssl -ljsoncpp -std=c++17 -fPIC -shared -g -w\
20-
# -DENABLE_SONOLUS -DENABLE_MYSQL -DENABLE_SQLITE -DENABLE_CURL -DENABLE_ZIP
17+
echo -e "${YELLOW}Compiling libonedrive using g++...${WHITE}"
18+
g++ plugins/libonedrive/libonedrive.cpp -o plugins/libonedrive.so \
19+
-ldl -lpthread -lcrypto -lssl -ljsoncpp -std=c++17 -fPIC -shared -g -w\
20+
-DENABLE_SONOLUS -DENABLE_MYSQL -DENABLE_SQLITE -DENABLE_CURL -DENABLE_ZIP
2121
echo -e "${YELLOW}Done.${WHITE}"
2222
echo -e ""
2323
echo -e "You can type \`./sonolus serve\` to start your server."

modules/httpd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,7 @@ void putRequest(client_conn& conn, int code, argvar argv) {
751751
putRequest(conn, 500, __default_response);
752752
send(conn, buffer.str());
753753
exitRequest(conn);
754+
return;
754755
}
755756
writeLog(LOG_LEVEL_DEBUG, "Valid Response Code!");
756757

0 commit comments

Comments
 (0)