Improve headers detection

koa uses `request.header` as an alias to `req.headers`, while express
inherits `req.headers` from IncomingMessage.