Changeset 173254 in webkit
- Timestamp:
- Sep 4, 2014 12:03:54 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r173250 r173254 1 2014-09-03 Youenn Fablet <youenn.fablet@crf.canon.fr> 2 3 XMLHttpRequest always defaults Content-Type to application/xml, while it should depend on data type 4 https://bugs.webkit.org/show_bug.cgi?id=11049 5 6 Reviewed by Darin Adler. 7 8 * http/tests/xmlhttprequest/methods-lower-case-expected.txt: Rebaseline (application/xml -> text/plain;charset=UTF-8). 9 * http/tests/xmlhttprequest/post-content-type-document.html: New test to cover default mime type for XML and HTML document data types. 10 * http/tests/xmlhttprequest/post-content-type-document-expected.txt: Ditto. 11 * http/tests/xmlhttprequest/post-content-type-expected.txt: Rebaseline (application/xml -> text/plain;charset=UTF-8). 12 * http/tests/xmlhttprequest/post-content-type.html: Ditto. 13 * http/tests/xmlhttprequest/request-encoding2.html: Ditto. 14 * platform/gtk/http/tests/xmlhttprequest/methods-async-expected.txt: Ditto. 15 * platform/gtk/http/tests/xmlhttprequest/methods-expected.txt: Ditto. 16 * platform/gtk/http/tests/xmlhttprequest/workers/methods-async-expected.txt: Ditto. 17 * platform/gtk/http/tests/xmlhttprequest/workers/methods-expected.txt: Ditto. 18 * platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt: Ditto. 19 * platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt: Ditto. 20 1 21 2014-09-03 Shivakumar JM <shiva.jm@samsung.com> 2 22 -
trunk/LayoutTests/http/tests/xmlhttprequest/methods-async-expected.txt
-
Property
svn:executable
set to
*
r21687 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(0 bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(0 bytes), Content-Type: null 16 16 HEAD(null): HEAD(0 bytes), Content-Type: null 17 17 HEAD("123"): HEAD(0 bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(0 bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(0 bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 -
Property
svn:executable
set to
-
trunk/LayoutTests/http/tests/xmlhttprequest/methods-expected.txt
-
Property
svn:executable
set to
*
r21687 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(0 bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(0 bytes), Content-Type: null 16 16 HEAD(null): HEAD(0 bytes), Content-Type: null 17 17 HEAD("123"): HEAD(0 bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(0 bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(0 bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 -
Property
svn:executable
set to
-
trunk/LayoutTests/http/tests/xmlhttprequest/methods-lower-case-expected.txt
r21687 r173254 2 2 3 3 get(""): GET(null bytes), Content-Type: null 4 post(""): POST(0 bytes), Content-Type: application/xml5 DoIt(""): DoIt(0 bytes), Content-Type: application/xml4 post(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 5 DoIt(""): DoIt(0 bytes), Content-Type: text/plain;charset=UTF-8 6 6 get(""): GET(null bytes), Content-Type: null 7 post(""): POST(0 bytes), Content-Type: application/xml8 DoIt(""): DoIt(0 bytes), Content-Type: application/xml7 post(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 8 DoIt(""): DoIt(0 bytes), Content-Type: text/plain;charset=UTF-8 -
trunk/LayoutTests/http/tests/xmlhttprequest/post-content-type-expected.txt
r12923 r173254 1 1 Test for bug 3565 - posting data via XMLHttpRequest doesn't work (wrong Content-Type). 2 2 3 Should be application/xml:3 Should be text/plain;charset=UTF-8: 4 4 5 application/xml 5 text/plain;charset=UTF-8 6 6 -
trunk/LayoutTests/http/tests/xmlhttprequest/post-content-type.html
r120167 r173254 3 3 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=3565">bug 3565</a> 4 4 - posting data via XMLHttpRequest doesn't work (wrong Content-Type).</p> 5 <p>Should be application/xml:</p>5 <p>Should be text/plain;charset=UTF-8:</p> 6 6 <script> 7 7 if (window.testRunner) -
trunk/LayoutTests/http/tests/xmlhttprequest/request-encoding2.html
r120167 r173254 19 19 20 20 document.getElementById("result1").firstChild.data = "Test1 (setRequestHeader was not called):"; 21 if (req.responseText == " application/xml\n")21 if (req.responseText == "text/plain;charset=UTF-8\n") 22 22 document.getElementById("result1").firstChild.data += " SUCCESS"; 23 23 else -
trunk/LayoutTests/http/tests/xmlhttprequest/workers/methods-async-expected.txt
-
Property
svn:executable
set to
*
r41344 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(0 bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(0 bytes), Content-Type: null 16 16 HEAD(null): HEAD(0 bytes), Content-Type: null 17 17 HEAD("123"): HEAD(0 bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(0 bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(0 bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 24 24 DONE -
Property
svn:executable
set to
-
trunk/LayoutTests/http/tests/xmlhttprequest/workers/methods-expected.txt
-
Property
svn:executable
set to
*
r41344 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(0 bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(0 bytes), Content-Type: null 16 16 HEAD(null): HEAD(0 bytes), Content-Type: null 17 17 HEAD("123"): HEAD(0 bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(0 bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(0 bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 24 24 DONE -
Property
svn:executable
set to
-
trunk/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt
-
Property
svn:executable
set to
*
r47467 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(0 bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(0 bytes), Content-Type: null 16 16 HEAD(null): HEAD(0 bytes), Content-Type: null 17 17 HEAD("123"): HEAD(0 bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(0 bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(0 bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 24 24 DONE -
Property
svn:executable
set to
-
trunk/LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt
-
Property
svn:executable
set to
*
r47467 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(0 bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(0 bytes), Content-Type: null 16 16 HEAD(null): HEAD(0 bytes), Content-Type: null 17 17 HEAD("123"): HEAD(0 bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(0 bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(0 bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 24 24 DONE -
Property
svn:executable
set to
-
trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/methods-async-expected.txt
r113019 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(null bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(null bytes), Content-Type: null 16 16 HEAD(null): HEAD(null bytes), Content-Type: null 17 17 HEAD("123"): HEAD(null bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(null bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 -
trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/methods-expected.txt
r113019 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(null bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(null bytes), Content-Type: null 16 16 HEAD(null): HEAD(null bytes), Content-Type: null 17 17 HEAD("123"): HEAD(null bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(null bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 -
trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/methods-async-expected.txt
r113019 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(null bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(null bytes), Content-Type: null 16 16 HEAD(null): HEAD(null bytes), Content-Type: null 17 17 HEAD("123"): HEAD(null bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(null bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 24 24 DONE -
trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/methods-expected.txt
r113019 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(null bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(null bytes), Content-Type: null 16 16 HEAD(null): HEAD(null bytes), Content-Type: null 17 17 HEAD("123"): HEAD(null bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(null bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 24 24 DONE -
trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt
r113019 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(null bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(null bytes), Content-Type: null 16 16 HEAD(null): HEAD(null bytes), Content-Type: null 17 17 HEAD("123"): HEAD(null bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(null bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 24 24 DONE -
trunk/LayoutTests/platform/efl/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt
r113019 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(null bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(null bytes), Content-Type: null 16 16 HEAD(null): HEAD(null bytes), Content-Type: null 17 17 HEAD("123"): HEAD(null bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(null bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 24 24 DONE -
trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/methods-async-expected.txt
r113019 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(null bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(null bytes), Content-Type: null 16 16 HEAD(null): HEAD(null bytes), Content-Type: null 17 17 HEAD("123"): HEAD(null bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(null bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 -
trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/methods-expected.txt
r113019 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(null bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(null bytes), Content-Type: null 16 16 HEAD(null): HEAD(null bytes), Content-Type: null 17 17 HEAD("123"): HEAD(null bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(null bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 -
trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/methods-async-expected.txt
r113019 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(null bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(null bytes), Content-Type: null 16 16 HEAD(null): HEAD(null bytes), Content-Type: null 17 17 HEAD("123"): HEAD(null bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(null bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 24 24 DONE -
trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/methods-expected.txt
r113019 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(null bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(null bytes), Content-Type: null 16 16 HEAD(null): HEAD(null bytes), Content-Type: null 17 17 HEAD("123"): HEAD(null bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(null bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 24 24 DONE -
trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-async-expected.txt
r113019 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(null bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(null bytes), Content-Type: null 16 16 HEAD(null): HEAD(null bytes), Content-Type: null 17 17 HEAD("123"): HEAD(null bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(null bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 24 24 DONE -
trunk/LayoutTests/platform/gtk/http/tests/xmlhttprequest/workers/shared-worker-methods-expected.txt
r113019 r173254 4 4 GET(null): GET(null bytes), Content-Type: null 5 5 GET("123"): GET(null bytes), Content-Type: null 6 POST(""): POST(0 bytes), Content-Type: application/xml6 POST(""): POST(0 bytes), Content-Type: text/plain;charset=UTF-8 7 7 POST(null): POST(0 bytes), Content-Type: null 8 POST("123"): POST(3 bytes), Content-Type: application/xml9 PUT(""): PUT(0 bytes), Content-Type: application/xml8 POST("123"): POST(3 bytes), Content-Type: text/plain;charset=UTF-8 9 PUT(""): PUT(0 bytes), Content-Type: text/plain;charset=UTF-8 10 10 PUT(null): PUT(0 bytes), Content-Type: null 11 PUT("123"): PUT(3 bytes), Content-Type: application/xml12 DELETE(""): DELETE(0 bytes), Content-Type: application/xml11 PUT("123"): PUT(3 bytes), Content-Type: text/plain;charset=UTF-8 12 DELETE(""): DELETE(0 bytes), Content-Type: text/plain;charset=UTF-8 13 13 DELETE(null): DELETE(null bytes), Content-Type: null 14 DELETE("123"): DELETE(3 bytes), Content-Type: application/xml14 DELETE("123"): DELETE(3 bytes), Content-Type: text/plain;charset=UTF-8 15 15 HEAD(""): HEAD(null bytes), Content-Type: null 16 16 HEAD(null): HEAD(null bytes), Content-Type: null 17 17 HEAD("123"): HEAD(null bytes), Content-Type: null 18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml18 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: text/plain;charset=UTF-8 19 19 WKFOOBAR(null): WKFOOBAR(null bytes), Content-Type: null 20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml21 SEARCH(""): SEARCH(0 bytes), Content-Type: application/xml20 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: text/plain;charset=UTF-8 21 SEARCH(""): SEARCH(0 bytes), Content-Type: text/plain;charset=UTF-8 22 22 SEARCH(null): SEARCH(null bytes), Content-Type: null 23 SEARCH("123"): SEARCH(3 bytes), Content-Type: application/xml23 SEARCH("123"): SEARCH(3 bytes), Content-Type: text/plain;charset=UTF-8 24 24 DONE -
trunk/Source/WebCore/ChangeLog
r173251 r173254 1 2014-09-03 Youenn Fablet <youenn.fablet@crf.canon.fr> 2 3 XMLHttpRequest always defaults Content-Type to application/xml, while it should depend on data type 4 https://bugs.webkit.org/show_bug.cgi?id=11049 5 6 Reviewed by Darin Adler. 7 8 Updated default mime type when sending text (changed from application/xml to text/plain;charset=UTF-8) 9 Updated default mime type when sending document (set to application/xml;charset=UTF-8 for XML documents and text/html;charset=UTF-8 for HTML documents) 10 11 Test: http/tests/xmlhttprequest/post-content-type-document.html 12 13 * xml/XMLHttpRequest.cpp: 14 (WebCore::XMLHttpRequest::send): updating default Content-Type valuess. 15 1 16 2014-09-02 Brian J. Burg <burg@cs.washington.edu> 2 17 -
trunk/Source/WebCore/xml/XMLHttpRequest.cpp
r170960 r173254 594 594 #endif 595 595 // FIXME: this should include the charset used for encoding. 596 setRequestHeaderInternal("Content-Type", "application/xml");596 setRequestHeaderInternal("Content-Type", document->isHTMLDocument() ? "text/html;charset=UTF-8":"application/xml;charset=UTF-8"); 597 597 } 598 598 … … 601 601 String body = createMarkup(*document); 602 602 603 // FIXME: this should use value of document.inputEncoding to determine the encoding to use. 604 TextEncoding encoding = UTF8Encoding(); 605 m_requestEntityBody = FormData::create(encoding.encode(body, EntitiesForUnencodables)); 603 m_requestEntityBody = FormData::create(UTF8Encoding().encode(body, EntitiesForUnencodables)); 606 604 if (m_upload) 607 605 m_requestEntityBody->setAlwaysStream(true); … … 624 622 else 625 623 #endif 626 setRequestHeaderInternal("Content-Type", " application/xml");624 setRequestHeaderInternal("Content-Type", "text/plain;charset=UTF-8"); 627 625 } else { 628 626 replaceCharsetInMediaType(contentType, "UTF-8");
Note: See TracChangeset
for help on using the changeset viewer.