fixed reply error

This commit is contained in:
Simon Stürz 2015-08-03 13:02:29 +02:00 committed by Michael Zanetti
parent 6a52f7031e
commit 7f87cdd777

View File

@ -174,7 +174,7 @@ void TestWebserver::checkAllowedMethodCall()
QNetworkRequest request;
request.setUrl(QUrl("http://localhost:3000"));
QNetworkReply *reply;
QNetworkReply *reply = 0;
if (method == "GET") {
reply = nam->get(request);
@ -192,6 +192,9 @@ void TestWebserver::checkAllowedMethodCall()
reply = nam->sendCustomRequest(request, "OPTIONS");
} else if(method == "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);