Skip to content

Commit e5e43c3

Browse files
committed
Update main.cpp
1 parent 293dd28 commit e5e43c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ GMOD_MODULE_OPEN()
1616
IServer* server = InterfacePointers::Server();
1717

1818
svr.Get("/", [=](const httplib::Request&, httplib::Response& res) {
19-
res.set_content("Hello World! \n\
20-
Servername: " + std::string(server->GetName()) + "\
21-
Mapname: " + std::string(server->GetMapName()), "text/plain");
19+
res.set_content("Hello World", "text/plain");
20+
LuaPrint("Will this crash the server");
2221
});
2322

2423
svr.listen("0.0.0.0", 32039); // The port for my testserver.
@@ -28,6 +27,7 @@ GMOD_MODULE_OPEN()
2827

2928
GMOD_MODULE_CLOSE()
3029
{
30+
LuaPrint("HTTPServer shutdown");
3131
svr.stop();
3232

3333
return 0;

0 commit comments

Comments
 (0)