From 2886280c57cb77b6e7f2bac544af5b8c23164816 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Fri, 2 Jan 2009 02:00:33 +0000 Subject: 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 --- test/test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/test.js') 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 ""; -- cgit v1.2.3