summaryrefslogtreecommitdiff
path: root/share/www/script/test/proxyauth.js
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2010-11-18 13:20:14 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2010-11-18 13:20:14 +0000
commit3cf27c815bf0db1ed81e0acdd94b2f0d816c1585 (patch)
tree23801e632f36c899d60a5e689bae478d8781efb4 /share/www/script/test/proxyauth.js
parent46fc40a196a65f9bcded818f9a111edff0ec9576 (diff)
JavaScript tests: avoid global variable declarations.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1036447 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test/proxyauth.js')
-rw-r--r--share/www/script/test/proxyauth.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/www/script/test/proxyauth.js b/share/www/script/test/proxyauth.js
index 01d59192..40af0089 100644
--- a/share/www/script/test/proxyauth.js
+++ b/share/www/script/test/proxyauth.js
@@ -56,7 +56,7 @@ couchTests.proxyauth = function(debug) {
CouchDB.logout();
- headers = {
+ var headers = {
"X-Auth-CouchDB-UserName": "benoitc@apache.org",
"X-Auth-CouchDB-Roles": "test",
"X-Auth-CouchDB-Token": hex_hmac_sha1(secret, "benoitc@apache.org")
@@ -78,7 +78,7 @@ couchTests.proxyauth = function(debug) {
db.save(designDoc);
- req = CouchDB.request("GET", "/test_suite_db/_design/test/_show/welcome",
+ var req = CouchDB.request("GET", "/test_suite_db/_design/test/_show/welcome",
{headers: headers});
T(req.responseText == "Welcome benoitc@apache.org");
@@ -86,7 +86,7 @@ couchTests.proxyauth = function(debug) {
{headers: headers});
T(req.responseText == "test");
- xhr = CouchDB.request("PUT", "/_config/couch_httpd_auth/proxy_use_secret",{
+ var xhr = CouchDB.request("PUT", "/_config/couch_httpd_auth/proxy_use_secret",{
body : JSON.stringify("true"),
headers: {"X-Couch-Persist": "false"}
});