From 9d0a0a52379f019deb2e479d9d5d87fe72cc98f5 Mon Sep 17 00:00:00 2001 From: Robert Newson Date: Thu, 8 Sep 2011 11:13:21 +0000 Subject: COUCHDB-1274 - Use text/javascript content-type for jsonp responses. Backported from trunk @1166618 git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1166627 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/test/jsonp.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'share/www/script') diff --git a/share/www/script/test/jsonp.js b/share/www/script/test/jsonp.js index 9aba7189..d1bca94a 100644 --- a/share/www/script/test/jsonp.js +++ b/share/www/script/test/jsonp.js @@ -48,6 +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")); T(xhr.status == 200); jsonp_flag = 0; eval(xhr.responseText); @@ -70,6 +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")); T(xhr.status == 200); jsonp_flag = 0; eval(xhr.responseText); -- cgit v1.2.3