Skip to content

Instantly share code, notes, and snippets.

@mrrooijen
Created June 19, 2010 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrrooijen/444436 to your computer and use it in GitHub Desktop.
Save mrrooijen/444436 to your computer and use it in GitHub Desktop.
jQuery XHR settings
// At the top of application.js
jQuery.ajaxSetup({
'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment