Add Req.ajax_? function to identify ajax requests. #1252

Merged
merged 2 commits into from Apr 10, 2012
Commits on Apr 7, 2012
  1. Add ajax_? to Req to tell whether the req was tagged as ajax.

    Shadowfiend committed Apr 7, 2012
    Identification is done using the X-Requested-With header.
  2. Handle potential multiple values for X-Requested-With.

    Shadowfiend committed Apr 7, 2012
    If any are XMLHttpRequest, we return true for ajax_?.