From 7f87cdd777339ea35306d4792d734e14bae5bf11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Mon, 3 Aug 2015 13:02:29 +0200 Subject: [PATCH] fixed reply error --- tests/auto/webserver/testwebserver.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/auto/webserver/testwebserver.cpp b/tests/auto/webserver/testwebserver.cpp index 2124b037..df9ed1d5 100644 --- a/tests/auto/webserver/testwebserver.cpp +++ b/tests/auto/webserver/testwebserver.cpp @@ -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);