diff --git a/test/basic.js b/test/basic.js index 4cf91dd0..07846eef 100644 --- a/test/basic.js +++ b/test/basic.js @@ -58,7 +58,7 @@ test('simple get json', function (t) { var server = http.createServer(function (req, res) { t.equal(req.url, '/path') - t.equal(req.headers['accept'], 'application/json') + t.equal(req.headers.accept, 'application/json') res.statusCode = 200 res.end('{"message":"response"}') })