From b83837076953a22bbe56143da9f626e224501212 Mon Sep 17 00:00:00 2001 From: Mikhail Svetkin Date: Thu, 8 Aug 2019 20:45:51 +0200 Subject: QHttpServerResponse: Change text/html -> application/x-empty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It does not make sense to set "text/html" as content type for empty responses. Change-Id: I93f540c97cef38409f1479f1c332349155edd176 Reviewed-by: Edward Welbourne Reviewed-by: MÃ¥rten Nordheim Reviewed-by: Tasuku Suzuki --- tests/auto/qhttpserver/tst_qhttpserver.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/auto/qhttpserver/tst_qhttpserver.cpp b/tests/auto/qhttpserver/tst_qhttpserver.cpp index 938e051..3ca4c99 100644 --- a/tests/auto/qhttpserver/tst_qhttpserver.cpp +++ b/tests/auto/qhttpserver/tst_qhttpserver.cpp @@ -260,7 +260,7 @@ void tst_QHttpServer::routeGet_data() QTest::addRow("not found") << "/not-found" << 404 - << "text/html" + << "application/x-empty" << ""; QTest::addRow("arg:int") @@ -284,7 +284,7 @@ void tst_QHttpServer::routeGet_data() QTest::addRow("arg:-uint") << "/page/-10/detail" << 404 - << "text/html" + << "application/x-empty" << ""; QTest::addRow("arg:string") @@ -349,7 +349,7 @@ void tst_QHttpServer::routeGet_data() QTest::addRow("custom route rule") << "/custom/15" << 404 - << "text/html" + << "application/x-empty" << ""; QTest::addRow("custom route rule + query") @@ -373,7 +373,7 @@ void tst_QHttpServer::routeGet_data() QTest::addRow("invalid-rule-method, get") << "/invalid-rule-method" << 404 - << "text/html" + << "application/x-empty" << ""; QTest::addRow("check custom type, data=1") @@ -571,7 +571,7 @@ void tst_QHttpServer::routeDelete_data() QTest::addRow("post-and-get, delete") << "/post-and-get" << 404 - << "text/html" + << "application/x-empty" << ""; QTest::addRow("any, delete") -- cgit v1.2.3