cakephp/docs — pull request #1453 by cincodenada (2014-07-01 01:17:09+00:00)
Title: Fix capitalization of header for is('ajax')

The code makes a case-sensitive compare to 'XMLHttpRequest', so anyone manually setting it to XmlHttpRequest per this doc would run into issues of it not showing up as is('ajax'). I also capitalized With in the header name, since that's what jQuery sends, and case doesn't matter there (since it's pulled from the $_SERVER array which is all-caps)