Skip to content

Commit

Permalink
$.ajax uses type not method to specify request method
Browse files Browse the repository at this point in the history
Took me a while to figure this out, since I'm not jQuery user.
  • Loading branch information
Darker committed Oct 19, 2014
1 parent c322724 commit ebce7e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ $(function() {

$.ajax({
url: 'https://api.imgur.com/3/image',
method: 'POST',
type: 'POST',
headers: {
Authorization: auth,
Accept: 'application/json'
Expand Down

0 comments on commit ebce7e1

Please sign in to comment.