obfuscurity/descartes — pull request #159 by bitprophet (2014-02-07 04:31:58+00:00)
Title: Better api request detection

See commit log for details. tl;dr for a "did the client explicitly request `application/json`" check, we can't use the newer `request.accept?()` method, but the code here matches the intent of the old check. Also refactors it.