diff options
author | Robert Newson <rnewson@apache.org> | 2014-09-03 21:05:36 +0100 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2014-09-03 21:06:49 +0100 |
commit | ae73f4641b10f64ebe02a81a2ca52f74f81c2f3f (patch) | |
tree | ad0a5f1b6e6a4f4c3865dd6d5dd63995ba5eb6f9 | |
parent | 100bb848266dc9e36883fc7b79d022f53e6ba031 (diff) | |
download | couchdb-ae73f4641b10f64ebe02a81a2ca52f74f81c2f3f.tar.gz |
Send application/javascript in JSONP responses
closes COUCHDB-2026
-rw-r--r-- | share/www/script/test/jsonp.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/www/script/test/jsonp.js b/share/www/script/test/jsonp.js index d1bca94a8..e4f4490bf 100644 --- a/share/www/script/test/jsonp.js +++ b/share/www/script/test/jsonp.js @@ -48,7 +48,7 @@ couchTests.jsonp = function(debug) { // Test unchunked callbacks. var xhr = CouchDB.request("GET", "/test_suite_db/0?callback=jsonp_no_chunk"); - TEquals("text/javascript", xhr.getResponseHeader("Content-Type")); + TEquals("application/javascript", xhr.getResponseHeader("Content-Type")); T(xhr.status == 200); jsonp_flag = 0; eval(xhr.responseText); @@ -71,7 +71,7 @@ couchTests.jsonp = function(debug) { var url = "/test_suite_db/_design/test/_view/all_docs?callback=jsonp_chunk"; xhr = CouchDB.request("GET", url); - TEquals("text/javascript", xhr.getResponseHeader("Content-Type")); + TEquals("application/javascript", xhr.getResponseHeader("Content-Type")); T(xhr.status == 200); jsonp_flag = 0; eval(xhr.responseText); |