From ab71069d36708d68206b79d97affce03173366b7 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Sun, 23 Aug 2009 14:51:24 +0000 Subject: 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 --- share/www/script/test/oauth.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'share/www') 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); -- cgit v1.2.3