node v0.10 allow header support is weird, attempt to fix test

This commit is contained in:
David Frank 2016-03-19 18:52:13 +08:00
parent 839354b76b
commit 4b589bc147
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ TestServer.prototype.router = function(req, res) {
if (p === '/options') {
res.statusCode = 200;
res.setHeader('Allow', ['GET', 'HEAD', 'OPTIONS']);
res.setHeader('Allow', 'GET, HEAD, OPTIONS');
res.end('hello world');
}