berk / tr8n

This repository has moved to:
https://github.com/tr8n/tr8n
MIT License
280 stars 37 forks source link

Ajax requests should contain X-Requested-With headers #23

Closed stevecrozz closed 12 years ago

stevecrozz commented 13 years ago

This little update adds X-Requested-With to ajax request headers so that we can determine what's an Ajax request and what is not from the rails app using request.xhr?