//taken from prototype, pretty much verbatim
var requestHeaders =
['X-Requested-With', 'XMLHttpRequest',
'X-MochiKit-Version', MochiKit.Async.VERSION,
Instead of propagating custom headers like X-Prototype-Version (and X-MochiKit-Version), I'd prefer more standardized approach like what is done with User-Agent already:
'X-XMLHttpRequest-User-Agent', 'MochiKit/' + MochiKit.Async.VERSION
It would be great if it was something all the libraries could agree on. Eventually this will probably be standardized anyway and in the meanwhile, it would make determining the library version easier on the server-side.
http://www.dev411.com/blog/2006/06/30/should-there-be-a-xmlhttprequest-user-agent
Any thoughts?
John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---
