mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:08:00 +02:00
Temporary crashpad debugging
This commit is contained in:
parent
80683a7b7a
commit
df0996cdc9
2 changed files with 18 additions and 1 deletions
|
@ -289,7 +289,7 @@ bool OctreeServer::handleHTTPRequest(HTTPConnection* connection, const QUrl& url
|
||||||
|
|
||||||
#ifdef FORCE_CRASH
|
#ifdef FORCE_CRASH
|
||||||
if (connection->requestOperation() == QNetworkAccessManager::GetOperation
|
if (connection->requestOperation() == QNetworkAccessManager::GetOperation
|
||||||
&& path == "/force_crash") {
|
&& url.path() == "/force_crash") {
|
||||||
|
|
||||||
qDebug() << "About to force a crash!";
|
qDebug() << "About to force a crash!";
|
||||||
|
|
||||||
|
|
|
@ -2028,6 +2028,22 @@ bool DomainServer::handleHTTPRequest(HTTPConnection* connection, const QUrl& url
|
||||||
}
|
}
|
||||||
|
|
||||||
if (connection->requestOperation() == QNetworkAccessManager::GetOperation) {
|
if (connection->requestOperation() == QNetworkAccessManager::GetOperation) {
|
||||||
|
#define FORCE_CRASH TRUE
|
||||||
|
#ifdef FORCE_CRASH
|
||||||
|
if (url.path() == "/force_crash") {
|
||||||
|
qDebug() << "About to force a crash!";
|
||||||
|
|
||||||
|
int foo;
|
||||||
|
int* forceCrash = &foo;
|
||||||
|
|
||||||
|
QString responseString("forcing a crash...");
|
||||||
|
connection->respond(HTTPConnection::StatusCode200, qPrintable(responseString));
|
||||||
|
|
||||||
|
delete[] forceCrash;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
if (url.path() == "/assignments.json") {
|
if (url.path() == "/assignments.json") {
|
||||||
// user is asking for json list of assignments
|
// user is asking for json list of assignments
|
||||||
|
|
||||||
|
@ -2203,6 +2219,7 @@ bool DomainServer::handleHTTPRequest(HTTPConnection* connection, const QUrl& url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (connection->requestOperation() == QNetworkAccessManager::PostOperation) {
|
} else if (connection->requestOperation() == QNetworkAccessManager::PostOperation) {
|
||||||
|
|
||||||
if (url.path() == URI_ASSIGNMENT) {
|
if (url.path() == URI_ASSIGNMENT) {
|
||||||
// this is a script upload - ask the HTTPConnection to parse the form data
|
// this is a script upload - ask the HTTPConnection to parse the form data
|
||||||
QList<FormData> formData = connection->parseFormData();
|
QList<FormData> formData = connection->parseFormData();
|
||||||
|
|
Loading…
Reference in a new issue