Skip to content

Instantly share code, notes, and snippets.

@lahmatiy
Last active December 19, 2015 06:29
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 lahmatiy/5911586 to your computer and use it in GitHub Desktop.
Save lahmatiy/5911586 to your computer and use it in GitHub Desktop.
Returns extra request headers for basis.net.Transport that sending prior to 0.9.5
basis.require('basis.net');
basis.net.AjaxTransport.prototype.requestHeaders['X-Requested-With'] = 'XMLHttpRequest';
basis.net.AjaxTransport.prototype.requestHeaders['X-Powered-By'] = 'basis.js';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment