diff options
author | Mikhail Svetkin <mikhail.svetkin@gmail.com> | 2019-08-08 20:45:51 +0200 |
---|---|---|
committer | Mikhail Svetkin <mikhail.svetkin@gmail.com> | 2019-08-22 06:38:26 +0200 |
commit | b83837076953a22bbe56143da9f626e224501212 (patch) | |
tree | 1d88a766e5af70a9de9394c24d3cda1e53b874c2 /tests | |
parent | f46cb8832f19a0a40cb9fb55a5a86d821daa962a (diff) |
QHttpServerResponse: Change text/html -> application/x-empty
It does not make sense to set "text/html" as content type for empty
responses.
Change-Id: I93f540c97cef38409f1479f1c332349155edd176
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Tasuku Suzuki <tasuku.suzuki@qbc.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qhttpserver/tst_qhttpserver.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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") |