summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/couchdb/default.ini.tpl.in2
-rw-r--r--share/www/script/test/changes.js2
-rw-r--r--share/www/script/test/jsonp.js2
-rw-r--r--src/couchdb/couch_httpd.erl2
4 files changed, 4 insertions, 4 deletions
diff --git a/etc/couchdb/default.ini.tpl.in b/etc/couchdb/default.ini.tpl.in
index a04dca3d..5cdaf365 100644
--- a/etc/couchdb/default.ini.tpl.in
+++ b/etc/couchdb/default.ini.tpl.in
@@ -20,7 +20,7 @@ authentication_handlers = {couch_httpd_oauth, oauth_authentication_handler}, {co
default_handler = {couch_httpd_db, handle_request}
secure_rewrites = true
vhost_global_handlers = _utils, _uuids, _session, _oauth, _users
-jsonp = false
+allow_jsonp = false
[log]
file = %localstatelogdir%/couch.log
diff --git a/share/www/script/test/changes.js b/share/www/script/test/changes.js
index 6a8802b9..e109a074 100644
--- a/share/www/script/test/changes.js
+++ b/share/www/script/test/changes.js
@@ -42,7 +42,7 @@ couchTests.changes = function(debug) {
run_on_modified_server(
[{section: "httpd",
- key: "jsonp",
+ key: "allow_jsonp",
value: "true"}],
function() {
var xhr = CouchDB.request("GET", "/test_suite_db/_changes?callback=jsonp");
diff --git a/share/www/script/test/jsonp.js b/share/www/script/test/jsonp.js
index 02349c93..6bec63ab 100644
--- a/share/www/script/test/jsonp.js
+++ b/share/www/script/test/jsonp.js
@@ -42,7 +42,7 @@ couchTests.jsonp = function(debug) {
run_on_modified_server(
[{section: "httpd",
- key: "jsonp",
+ key: "allow_jsonp",
value: "true"}],
function() {
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl
index aa434a36..0e5cedf8 100644
--- a/src/couchdb/couch_httpd.erl
+++ b/src/couchdb/couch_httpd.erl
@@ -594,7 +594,7 @@ start_jsonp(Req) ->
CallBack ->
try
% make sure jsonp is configured on (default off)
- case couch_config:get("httpd", "jsonp", "false") of
+ case couch_config:get("httpd", "allow_jsonp", "false") of
"true" ->
validate_callback(CallBack),
CallBack ++ "(";