{"action":"created","issue":{"url":"https://api.github.com/repos/pgte/nock/issues/493","repository_url":"https://api.github.com/repos/pgte/nock","labels_url":"https://api.github.com/repos/pgte/nock/issues/493/labels{/name}","comments_url":"https://api.github.com/repos/pgte/nock/issues/493/comments","events_url":"https://api.github.com/repos/pgte/nock/issues/493/events","html_url":"https://github.com/pgte/nock/issues/493","id":137818720,"number":493,"title":"$.ajax Content-Type option problem","user":{"login":"blackpost38","id":1947626,"avatar_url":"https://avatars.githubusercontent.com/u/1947626?v=3","gravatar_id":"","url":"https://api.github.com/users/blackpost38","html_url":"https://github.com/blackpost38","followers_url":"https://api.github.com/users/blackpost38/followers","following_url":"https://api.github.com/users/blackpost38/following{/other_user}","gists_url":"https://api.github.com/users/blackpost38/gists{/gist_id}","starred_url":"https://api.github.com/users/blackpost38/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackpost38/subscriptions","organizations_url":"https://api.github.com/users/blackpost38/orgs","repos_url":"https://api.github.com/users/blackpost38/repos","events_url":"https://api.github.com/users/blackpost38/events{/privacy}","received_events_url":"https://api.github.com/users/blackpost38/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-02T09:21:11Z","updated_at":"2016-03-03T00:39:06Z","closed_at":null,"body":"I have some problem.\r\n\r\nIf I give a second argument `nock(HOST_NAME).post(ENDPOINT, {...})` method, I get an error.\r\nBut If i remove content-type option, It works...\r\n\r\nWhat does it have problem?\r\n\r\nsample code is below\r\n```js\r\n// test.js\r\nnock(constants.API_SERVER_URL)\r\n\t.post('/reviews', , {\r\n            comment: 'message'\r\n        })\r\n\t.reply(200, {\r\n        data: {\r\n            _id: 1,\r\n            comment: 'some comment',\r\n            score: 2,\r\n            product_id: 3,\r\n            user_id: 4\r\n        }\r\n    });\r\n\r\n// ajax-call.js\r\n$.ajax(`${constants.API_SERVER_URL}/reviews`, {\r\n    type: 'POST',\r\n    data: mergedReview,\r\n    dataType: 'json',\r\n    success (response) {\r\n        const { _id, comment, score, product_id, user_id } = response.data;\r\n        dispatch({\r\n            type: 'RECIEVE_ADD_REVIEW',\r\n            _id, comment, score, product_id, user_id\r\n        });\r\n    },\r\n    error (error) {\r\n        dispatch({\r\n            type: 'RECIEVE_ADD_REVIEW_ERROR'\r\n        });\r\n    },\r\n    contentType: 'application/json'  // if you remove this, It works!\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/pgte/nock/issues/comments/191510119","html_url":"https://github.com/pgte/nock/issues/493#issuecomment-191510119","issue_url":"https://api.github.com/repos/pgte/nock/issues/493","id":191510119,"user":{"login":"ruimarinho","id":288709,"avatar_url":"https://avatars.githubusercontent.com/u/288709?v=3","gravatar_id":"","url":"https://api.github.com/users/ruimarinho","html_url":"https://github.com/ruimarinho","followers_url":"https://api.github.com/users/ruimarinho/followers","following_url":"https://api.github.com/users/ruimarinho/following{/other_user}","gists_url":"https://api.github.com/users/ruimarinho/gists{/gist_id}","starred_url":"https://api.github.com/users/ruimarinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruimarinho/subscriptions","organizations_url":"https://api.github.com/users/ruimarinho/orgs","repos_url":"https://api.github.com/users/ruimarinho/repos","events_url":"https://api.github.com/users/ruimarinho/events{/privacy}","received_events_url":"https://api.github.com/users/ruimarinho/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T00:39:06Z","updated_at":"2016-03-03T00:39:06Z","body":"If you enable debug mode (`DEBUG=*nock*` node), do you see any specific content header added by `$.ajax` besides `application/json`?"}}