Update xmlhttprequest expected data following QHttpHeaders
It is sent in lower-case now. I cannot see an easy way to make the xmlhttprequest read just the header names as case-insensitive without changing a lot of how it works, so I just updated the expected data instead. Fixes: QTBUG-121728 Change-Id: I68b5d98aa7ede0e56ac8ba4236b819abaf556aa9 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Lena Biliaieva <lena.biliaieva@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
parent
8b226b37df
commit
96d62b9f17
|
@ -1,13 +1,13 @@
|
|||
PROPFIND /container/ HTTP/1.1
|
||||
Depth: 1
|
||||
Content-Length: 95
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
Accept-Language: {{Ignore}}
|
||||
Content-type:i application/xml; charset="utf-8"
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
depth: 1
|
||||
content-length: 95
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
accept-language: {{Ignore}}
|
||||
content-type:i application/xml; charset="utf-8"
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<D:propfind xmlns:D="DAV:">
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
PROPFIND /file HTTP/1.1
|
||||
Content-Length: 192
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
Accept-Language: {{Ignore}}
|
||||
Content-type: text/xml; charset="utf-8"
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
content-length: 192
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
accept-language: {{Ignore}}
|
||||
content-type: text/xml; charset="utf-8"
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<D:propfind xmlns:D="DAV:">
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
PUT /testdocument.html HTTP/1.1
|
||||
Accept-Language: {{Ignore}}
|
||||
Content-Type: text/plain;charset=UTF-8
|
||||
Content-Length: 10
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
accept-language: {{Ignore}}
|
||||
content-type: text/plain;charset=UTF-8
|
||||
content-length: 10
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
||||
Test Data
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
GET /testdocument.html HTTP/1.1
|
||||
Accept-Language: {{Ignore}}
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
accept-language: {{Ignore}}
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
GET /testdocument.html HTTP/1.1
|
||||
Accept-Language: {{Ignore}}
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
accept-language: {{Ignore}}
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
GET /gml_logo.png HTTP/1.1
|
||||
Accept-Language: {{Ignore}}
|
||||
Content-Type: image/png
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
accept-language: {{Ignore}}
|
||||
content-type: image/png
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
GET /json.data HTTP/1.1
|
||||
Accept-Language: {{Ignore}}
|
||||
Content-Type: application/jsonrequest
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
accept-language: {{Ignore}}
|
||||
content-type: application/jsonrequest
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
POST /testdocument.html HTTP/1.1
|
||||
Accept-Language: {{Ignore}}
|
||||
Content-Type: text/plain;charset=UTF-8
|
||||
Content-Length: 13
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
accept-language: {{Ignore}}
|
||||
content-type: text/plain;charset=UTF-8
|
||||
content-length: 13
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
||||
My Sent Data
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
OPTIONS /testdocument.html HTTP/1.1
|
||||
Accept-Language: {{Ignore}}
|
||||
Content-Type: text/plain;charset=UTF-8
|
||||
Content-Length: 13
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
accept-language: {{Ignore}}
|
||||
content-type: text/plain;charset=UTF-8
|
||||
content-length: 13
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
||||
My Sent Data
|
||||
|
|
Binary file not shown.
|
@ -1,11 +1,11 @@
|
|||
POST /testdocument.html HTTP/1.1
|
||||
Accept-Language: {{Ignore}}
|
||||
Content-Type: charset=UTF-8;text/plain
|
||||
Content-Length: 13
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
accept-language: {{Ignore}}
|
||||
content-type: charset=UTF-8;text/plain
|
||||
content-length: 13
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
||||
My Sent Data
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
PUT /testdocument.html HTTP/1.1
|
||||
Accept-Language: {{Ignore}}
|
||||
Content-Type: text/plain;charset=UTF-8
|
||||
Content-Length: 13
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
accept-language: {{Ignore}}
|
||||
content-type: text/plain;charset=UTF-8
|
||||
content-length: 13
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
||||
My Sent Data
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
OPTIONS / HTTP/1.1
|
||||
Content-Length: 0
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
Accept-Language: {{Ignore}}
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
content-length: 0
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
accept-language: {{Ignore}}
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
OPTIONS /testdocument.html HTTP/1.1
|
||||
Content-Length: 0
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
Accept-Language: {{Ignore}}
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
content-length: 0
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
accept-language: {{Ignore}}
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
DELETE /testdocument.html HTTP/1.1
|
||||
Accept-Language: {{Ignore}}
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
accept-language: {{Ignore}}
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
GET /testdocument.html HTTP/1.1
|
||||
Accept-Language: {{Ignore}}
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
accept-language: {{Ignore}}
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
HEAD /testdocument.html HTTP/1.1
|
||||
Accept-Language: {{Ignore}}
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
accept-language: {{Ignore}}
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
PATCH /qqmlxmlhttprequest.cpp HTTP/1.1
|
||||
Accept-Language: {{Ignore}}
|
||||
If-Match: "ETagNumber"
|
||||
Content-Type: application/example
|
||||
Content-Length: 247
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
accept-language: {{Ignore}}
|
||||
if-match: "ETagNumber"
|
||||
content-type: application/example
|
||||
content-length: 247
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
||||
--- a/qqmlxmlhttprequest.cpp
|
||||
+++ b/qqmlxmlhttprequest.cpp
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
GET /testdocument.html HTTP/1.1
|
||||
Accept-Language: {{Ignore}}
|
||||
Test-header: value
|
||||
Test-header2: value,value2
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
accept-language: {{Ignore}}
|
||||
test-header: value
|
||||
test-header2: value,value2
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
GET /testdocument.html HTTP/1.1
|
||||
Accept-Language: {{Ignore}}
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
HTTP2-Settings: {{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
User-Agent: Mozilla/5.0
|
||||
Host: {{ServerHostUrl}}
|
||||
accept-language: {{Ignore}}
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
http2-settings: {{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
user-agent: Mozilla/5.0
|
||||
host: {{ServerHostUrl}}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
GET /text.xml HTTP/1.1
|
||||
Host: {{ServerHostUrl}}
|
||||
Connection: Keep-Alive{{Ignore}}
|
||||
Accept-Encoding: {{Ignore}}
|
||||
Accept-Language: {{Ignore}}
|
||||
User-Agent: {{Ignore}}
|
||||
host: {{ServerHostUrl}}
|
||||
connection: Keep-Alive{{Ignore}}
|
||||
accept-encoding: {{Ignore}}
|
||||
accept-language: {{Ignore}}
|
||||
user-agent: {{Ignore}}
|
||||
|
|
Loading…
Reference in New Issue