1[Qt] Redirection of HTTP POST (3xx) incorrectly includes original POST data
2https://bugs.webkit.org/show_bug.cgi?id=60440
3
4Reviewed by NOBODY (OOPS!).
5
6Source/WebCore:
7
8 Makes sure that the HTTP headers Content-type and Content-length are not included in
9 the requests that do not have any content.
10
11Tests: http/tests/navigation/post-301-response.html
12 http/tests/navigation/post-302-response.html
13 http/tests/navigation/post-303-response.html
14 http/tests/navigation/post-307-response.html
15
16* platform/network/qt/QNetworkReplyHandler.cpp:
17(WebCore::QNetworkReplyHandler::sendNetworkRequest):
18
19LayoutTests:
20
21These new tests check that no POST content is sent to the new URL after receiving http
22status codes 301, 302 and 303, and checks that the POST content is sent to the new URL
23after receiving a 307 http status code.
24
25* http/tests/navigation/post-301-response-expected.txt: Added.
26* http/tests/navigation/post-301-response.html: Added.
27* http/tests/navigation/post-302-response-expected.txt: Added.
28* http/tests/navigation/post-302-response.html: Added.
29* http/tests/navigation/post-303-response-expected.txt: Added.
30* http/tests/navigation/post-303-response.html: Added.
31* http/tests/navigation/post-307-response-expected.txt: Added.
32* http/tests/navigation/post-307-response.html: Added.
33* http/tests/navigation/resources/redirected-post-request-contents.php: Added.
34* http/tests/navigation/resources/redirection-response.php: Added.