Skip to content

Commit

Permalink
Add x-requested-with in requests for the JSONRPCClient
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Robert committed Aug 6, 2012
1 parent e7ae6ed commit 2e58ed1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Frameworks/Ajax/Ajax/WebServerResources/jsonrpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ JSONRpcClient.prototype._sendRequest = function (req)
try
{
http.setRequestHeader("Content-type", "text/plain");
http.setRequestHeader("x-requested-with", "XMLHttpRequest");
}
catch(e)
{
Expand Down

0 comments on commit 2e58ed1

Please sign in to comment.