diff options
author | Julien Brianceau <jbriance@cisco.com> | 2015-08-27 14:37:50 +0200 |
---|---|---|
committer | Julien Brianceau <jbriance@cisco.com> | 2015-08-27 14:08:00 +0000 |
commit | 1faca908dddb90824d94bed6a1561f4f192328d3 (patch) | |
tree | 76a81962a282d77cf71ec79a511d33113c4c061f /tests/auto/qml/qqmlxmlhttprequest/data | |
parent | 8843f9375632fe999b31d16a39e879590d3d9d07 (diff) |
XHR: Server side errors are not network errors
XMLHttpRequest specs state that only 'network errors' should result
in a request error, and a server side error like HTTP 500 Internal
Server Error (which results in QNetworkReply::InternalServerError)
is an indication of the HTTP server response rather than a network
error.
Change-Id: I94bf678a8487e3d31007dc5119d6fb4e87ea3102
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Reviewed-by: Valery Kotov <kotov.valery@gmail.com>
Diffstat (limited to 'tests/auto/qml/qqmlxmlhttprequest/data')
-rw-r--r-- | tests/auto/qml/qqmlxmlhttprequest/data/status.500.reply | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/status.500.reply b/tests/auto/qml/qqmlxmlhttprequest/data/status.500.reply new file mode 100644 index 0000000000..cbe2424f34 --- /dev/null +++ b/tests/auto/qml/qqmlxmlhttprequest/data/status.500.reply @@ -0,0 +1,3 @@ +HTTP/1.0 500 Internal Server Error +Connection: close +Content-type: text/html; charset=UTF-8 |