{"action":"created","issue":{"url":"https://api.github.com/repos/najaxjs/najax/issues/41","repository_url":"https://api.github.com/repos/najaxjs/najax","labels_url":"https://api.github.com/repos/najaxjs/najax/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/najaxjs/najax/issues/41/comments","events_url":"https://api.github.com/repos/najaxjs/najax/issues/41/events","html_url":"https://github.com/najaxjs/najax/issues/41","id":158534949,"number":41,"title":"options.type should default to GET if not specified","user":{"login":"avindra","id":126848,"avatar_url":"https://avatars.githubusercontent.com/u/126848?v=3","gravatar_id":"","url":"https://api.github.com/users/avindra","html_url":"https://github.com/avindra","followers_url":"https://api.github.com/users/avindra/followers","following_url":"https://api.github.com/users/avindra/following{/other_user}","gists_url":"https://api.github.com/users/avindra/gists{/gist_id}","starred_url":"https://api.github.com/users/avindra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avindra/subscriptions","organizations_url":"https://api.github.com/users/avindra/orgs","repos_url":"https://api.github.com/users/avindra/repos","events_url":"https://api.github.com/users/avindra/events{/privacy}","received_events_url":"https://api.github.com/users/avindra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-05T03:05:37Z","updated_at":"2016-06-06T09:12:15Z","closed_at":null,"body":"`type` should default to `GET` if not specified.\r\n\r\nTo demonstrate, the following will log an error:\r\n\r\n```js\r\najax({\r\n  url : 'http://www.google.com/search',\r\n  data : {\r\n    q : 'Latest proposals for esnext'\r\n  },\r\n  success:function(res) {\r\n    console.log('html is', res);\r\n  },\r\n  error:function(e) {\r\n    console.log('error is ', e.responseText)\r\n  },\r\n})\r\n```\r\n\r\nwhile the following will log the HTML response from google:\r\n\r\n```js\r\najax({\r\n  url : 'http://www.google.com/search',\r\n  type : 'GET',\r\n  data : {\r\n    q : 'Latest proposals for esnext'\r\n  },\r\n  success:function(res) {\r\n    console.log('html is', res);\r\n  },\r\n  error:function(e) {\r\n    console.log('error is ', e.responseText)\r\n  },\r\n})\r\n```\r\n\r\nThe only difference is that one specifies `  type : 'GET',`"},"comment":{"url":"https://api.github.com/repos/najaxjs/najax/issues/comments/223906590","html_url":"https://github.com/najaxjs/najax/issues/41#issuecomment-223906590","issue_url":"https://api.github.com/repos/najaxjs/najax/issues/41","id":223906590,"user":{"login":"alanclarke","id":640611,"avatar_url":"https://avatars.githubusercontent.com/u/640611?v=3","gravatar_id":"","url":"https://api.github.com/users/alanclarke","html_url":"https://github.com/alanclarke","followers_url":"https://api.github.com/users/alanclarke/followers","following_url":"https://api.github.com/users/alanclarke/following{/other_user}","gists_url":"https://api.github.com/users/alanclarke/gists{/gist_id}","starred_url":"https://api.github.com/users/alanclarke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanclarke/subscriptions","organizations_url":"https://api.github.com/users/alanclarke/orgs","repos_url":"https://api.github.com/users/alanclarke/repos","events_url":"https://api.github.com/users/alanclarke/events{/privacy}","received_events_url":"https://api.github.com/users/alanclarke/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T09:12:15Z","updated_at":"2016-06-06T09:12:15Z","body":"Sounds sensible, any chance of a pr?"}}
{"actor":{"display_login":"alanclarke"}}