summaryrefslogtreecommitdiff
path: root/test/test.js
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-01-02 02:00:33 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-01-02 02:00:33 +0000
commit2886280c57cb77b6e7f2bac544af5b8c23164816 (patch)
treeff59fdfe707f45a9888a3a0c53560211cbbbacd2 /test/test.js
parenta0da70849a2ede47340e75c62b92ddfe7b89829e (diff)
test runner is back up (thanks davisp), and tests pass in safari again (e4x syntax fix)
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@730656 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/test.js')
-rw-r--r--test/test.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test.js b/test/test.js
index e47153bd..a4aa32e1 100644
--- a/test/test.js
+++ b/test/test.js
@@ -67,8 +67,7 @@ var HTTP = (function() {
var h = headers[i];
if (keymatcher.test(h)) {
var value = h.substr(key.length+2);
- value = value.slice(0, value.length-1);
- return value;
+ return value.replace(/^\s+|\s+$/g,"");
}
}
return "";