mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-26 18:18:47 +02:00
removed force_crash by default
This commit is contained in:
parent
c1b22dfdd6
commit
1b18b53cfd
1 changed files with 2 additions and 0 deletions
|
@ -111,6 +111,7 @@ void VoxelServer::initMongoose(int port) {
|
||||||
int VoxelServer::civetwebRequestHandler(struct mg_connection* connection) {
|
int VoxelServer::civetwebRequestHandler(struct mg_connection* connection) {
|
||||||
const struct mg_request_info* ri = mg_get_request_info(connection);
|
const struct mg_request_info* ri = mg_get_request_info(connection);
|
||||||
|
|
||||||
|
#ifdef FORCE_CRASH
|
||||||
if (strcmp(ri->uri, "/force_crash") == 0 && strcmp(ri->request_method, "GET") == 0) {
|
if (strcmp(ri->uri, "/force_crash") == 0 && strcmp(ri->request_method, "GET") == 0) {
|
||||||
qDebug() << "About to force a crash!\n";
|
qDebug() << "About to force a crash!\n";
|
||||||
int foo;
|
int foo;
|
||||||
|
@ -121,6 +122,7 @@ int VoxelServer::civetwebRequestHandler(struct mg_connection* connection) {
|
||||||
mg_printf(connection, "%s", "did it crash....\r\n");
|
mg_printf(connection, "%s", "did it crash....\r\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (strcmp(ri->uri, "/") == 0 && strcmp(ri->request_method, "GET") == 0) {
|
if (strcmp(ri->uri, "/") == 0 && strcmp(ri->request_method, "GET") == 0) {
|
||||||
uint64_t checkSum;
|
uint64_t checkSum;
|
||||||
|
|
Loading…
Reference in a new issue