fixed reply error
This commit is contained in:
parent
6a52f7031e
commit
7f87cdd777
@ -174,7 +174,7 @@ void TestWebserver::checkAllowedMethodCall()
|
|||||||
|
|
||||||
QNetworkRequest request;
|
QNetworkRequest request;
|
||||||
request.setUrl(QUrl("http://localhost:3000"));
|
request.setUrl(QUrl("http://localhost:3000"));
|
||||||
QNetworkReply *reply;
|
QNetworkReply *reply = 0;
|
||||||
|
|
||||||
if (method == "GET") {
|
if (method == "GET") {
|
||||||
reply = nam->get(request);
|
reply = nam->get(request);
|
||||||
@ -192,6 +192,9 @@ void TestWebserver::checkAllowedMethodCall()
|
|||||||
reply = nam->sendCustomRequest(request, "OPTIONS");
|
reply = nam->sendCustomRequest(request, "OPTIONS");
|
||||||
} else if(method == "TRACE") {
|
} else if(method == "TRACE") {
|
||||||
reply = nam->sendCustomRequest(request, "TRACE");
|
reply = nam->sendCustomRequest(request, "TRACE");
|
||||||
|
} else {
|
||||||
|
// just to make shore there will be a reply to delete
|
||||||
|
reply = nam->get(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
clientSpy.wait(200);
|
clientSpy.wait(200);
|
||||||
|
|||||||
Reference in New Issue
Block a user