Skip to content

Commit

Permalink
fixing typo related to csrfToken
Browse files Browse the repository at this point in the history
  • Loading branch information
alassek committed Mar 28, 2011
1 parent 9b12372 commit 2e6ff48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
if ($.restSetup.csrf && !$.isEmptyObject($.restSetup.csrf))
if (!/^(get)$/i.test(settings.type))
if (!/(authenticity_token=)/i.test(settings.data)) {
settings.data += (settings.data ? "&" : "") + $.restSetup.csrfParam + '=' + $restSetup.csrfToken;
settings.data += (settings.data ? "&" : "") + $.restSetup.csrfParam + '=' + $.restSetup.csrfToken;
}

if (!/^(get|post)$/i.test(settings.type)) {
Expand Down

0 comments on commit 2e6ff48

Please sign in to comment.