diff options
author | Jan Lehnardt <jan@apache.org> | 2009-08-23 14:51:24 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2009-08-23 14:51:24 +0000 |
commit | ab71069d36708d68206b79d97affce03173366b7 (patch) | |
tree | 7d47be5d6dc6254b7c4b36ffd6877372211d5024 /share/www | |
parent | 4b6baa9cfcbbf6e78c6ea6f1ef208b4f7c25bba2 (diff) |
fix HEAD requests for OAuth, patch by Jason Davies, closes COUCHDB-479
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@806983 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-rw-r--r-- | share/www/script/test/oauth.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/www/script/test/oauth.js b/share/www/script/test/oauth.js index 1456bb30..6048a0ce 100644 --- a/share/www/script/test/oauth.js +++ b/share/www/script/test/oauth.js @@ -133,6 +133,10 @@ couchTests.oauth = function(debug) { xhr = oauthRequest("http://" + host + "/_session?foo=bar", message, accessor); T(xhr.status == expectedCode); + // Test HEAD method + xhr = oauthRequest("http://" + host + "/_session?foo=bar", message, accessor, "HEAD"); + T(xhr.status == expectedCode); + // Replication var result = CouchDB.replicate(dbPair.source, dbPair.target); T(result.ok); |