visionmedia/express — Issue #1003: req.accepts returns true when accept does not exist
Author: shtylman
Created: 2012-02-11 03:56:03+00:00
State: open

This seems a bit backwards to me. Shouldn't it return false and let the application code fall through to their chosen handler?

Think:
if (accept json) { ..}
else if (accept xml) { ...}
else { ... }

Tested on express 2.x line.