{"action":"opened","number":20,"pull_request":{"url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/pulls/20","id":49053808,"html_url":"https://github.com/pretenderjs/FakeXMLHttpRequest/pull/20","diff_url":"https://github.com/pretenderjs/FakeXMLHttpRequest/pull/20.diff","patch_url":"https://github.com/pretenderjs/FakeXMLHttpRequest/pull/20.patch","issue_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/issues/20","number":20,"state":"open","locked":false,"title":"Don't auto set content type header if set to false","user":{"login":"thejchap","id":2475286,"avatar_url":"https://avatars.githubusercontent.com/u/2475286?v=3","gravatar_id":"","url":"https://api.github.com/users/thejchap","html_url":"https://github.com/thejchap","followers_url":"https://api.github.com/users/thejchap/followers","following_url":"https://api.github.com/users/thejchap/following{/other_user}","gists_url":"https://api.github.com/users/thejchap/gists{/gist_id}","starred_url":"https://api.github.com/users/thejchap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejchap/subscriptions","organizations_url":"https://api.github.com/users/thejchap/orgs","repos_url":"https://api.github.com/users/thejchap/repos","events_url":"https://api.github.com/users/thejchap/events{/privacy}","received_events_url":"https://api.github.com/users/thejchap/received_events","type":"User","site_admin":false},"body":"When using `pretender.passthrough` to pass through an AJAX file upload that was made using something like this:\r\n\r\n```js\r\n$.ajax({\r\n  url: url,\r\n  type: 'POST',\r\n  data: formData,\r\n  processData: false,\r\n  contentType: false\r\n})\r\n```\r\n\r\nThe `multipart/form-data` content type and `boundary` weren't being set properly by the browser because this was overriding the `contentType: false` and setting it to `text/plain`","created_at":"2015-10-28T19:18:07Z","updated_at":"2015-10-28T19:18:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/pulls/20/commits","review_comments_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/pulls/20/comments","review_comment_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/issues/20/comments","statuses_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/statuses/b79277599359b9fa883febb0e460a8f31535e3c2","head":{"label":"thejchap:bug/content-type-false","ref":"bug/content-type-false","sha":"b79277599359b9fa883febb0e460a8f31535e3c2","user":{"login":"thejchap","id":2475286,"avatar_url":"https://avatars.githubusercontent.com/u/2475286?v=3","gravatar_id":"","url":"https://api.github.com/users/thejchap","html_url":"https://github.com/thejchap","followers_url":"https://api.github.com/users/thejchap/followers","following_url":"https://api.github.com/users/thejchap/following{/other_user}","gists_url":"https://api.github.com/users/thejchap/gists{/gist_id}","starred_url":"https://api.github.com/users/thejchap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejchap/subscriptions","organizations_url":"https://api.github.com/users/thejchap/orgs","repos_url":"https://api.github.com/users/thejchap/repos","events_url":"https://api.github.com/users/thejchap/events{/privacy}","received_events_url":"https://api.github.com/users/thejchap/received_events","type":"User","site_admin":false},"repo":{"id":44335133,"name":"FakeXMLHttpRequest","full_name":"thejchap/FakeXMLHttpRequest","owner":{"login":"thejchap","id":2475286,"avatar_url":"https://avatars.githubusercontent.com/u/2475286?v=3","gravatar_id":"","url":"https://api.github.com/users/thejchap","html_url":"https://github.com/thejchap","followers_url":"https://api.github.com/users/thejchap/followers","following_url":"https://api.github.com/users/thejchap/following{/other_user}","gists_url":"https://api.github.com/users/thejchap/gists{/gist_id}","starred_url":"https://api.github.com/users/thejchap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejchap/subscriptions","organizations_url":"https://api.github.com/users/thejchap/orgs","repos_url":"https://api.github.com/users/thejchap/repos","events_url":"https://api.github.com/users/thejchap/events{/privacy}","received_events_url":"https://api.github.com/users/thejchap/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thejchap/FakeXMLHttpRequest","description":"A fake XMLHttpRequest object for testing in browsers","fork":true,"url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest","forks_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/forks","keys_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/teams","hooks_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/hooks","issue_events_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/issues/events{/number}","events_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/events","assignees_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/assignees{/user}","branches_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/branches{/branch}","tags_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/tags","blobs_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/git/refs{/sha}","trees_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/statuses/{sha}","languages_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/languages","stargazers_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/stargazers","contributors_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/contributors","subscribers_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/subscribers","subscription_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/subscription","commits_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/commits{/sha}","git_commits_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/git/commits{/sha}","comments_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/comments{/number}","issue_comment_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/issues/comments{/number}","contents_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/contents/{+path}","compare_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/merges","archive_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/downloads","issues_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/issues{/number}","pulls_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/pulls{/number}","milestones_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/milestones{/number}","notifications_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/labels{/name}","releases_url":"https://api.github.com/repos/thejchap/FakeXMLHttpRequest/releases{/id}","created_at":"2015-10-15T17:49:32Z","updated_at":"2015-10-15T17:49:32Z","pushed_at":"2015-10-15T20:49:33Z","git_url":"git://github.com/thejchap/FakeXMLHttpRequest.git","ssh_url":"git@github.com:thejchap/FakeXMLHttpRequest.git","clone_url":"https://github.com/thejchap/FakeXMLHttpRequest.git","svn_url":"https://github.com/thejchap/FakeXMLHttpRequest","homepage":"","size":141,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pretenderjs:master","ref":"master","sha":"201dd12c4569e088fe8ea4dd32ad01d72a6eef52","user":{"login":"pretenderjs","id":13600256,"avatar_url":"https://avatars.githubusercontent.com/u/13600256?v=3","gravatar_id":"","url":"https://api.github.com/users/pretenderjs","html_url":"https://github.com/pretenderjs","followers_url":"https://api.github.com/users/pretenderjs/followers","following_url":"https://api.github.com/users/pretenderjs/following{/other_user}","gists_url":"https://api.github.com/users/pretenderjs/gists{/gist_id}","starred_url":"https://api.github.com/users/pretenderjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pretenderjs/subscriptions","organizations_url":"https://api.github.com/users/pretenderjs/orgs","repos_url":"https://api.github.com/users/pretenderjs/repos","events_url":"https://api.github.com/users/pretenderjs/events{/privacy}","received_events_url":"https://api.github.com/users/pretenderjs/received_events","type":"Organization","site_admin":false},"repo":{"id":13348207,"name":"FakeXMLHttpRequest","full_name":"pretenderjs/FakeXMLHttpRequest","owner":{"login":"pretenderjs","id":13600256,"avatar_url":"https://avatars.githubusercontent.com/u/13600256?v=3","gravatar_id":"","url":"https://api.github.com/users/pretenderjs","html_url":"https://github.com/pretenderjs","followers_url":"https://api.github.com/users/pretenderjs/followers","following_url":"https://api.github.com/users/pretenderjs/following{/other_user}","gists_url":"https://api.github.com/users/pretenderjs/gists{/gist_id}","starred_url":"https://api.github.com/users/pretenderjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pretenderjs/subscriptions","organizations_url":"https://api.github.com/users/pretenderjs/orgs","repos_url":"https://api.github.com/users/pretenderjs/repos","events_url":"https://api.github.com/users/pretenderjs/events{/privacy}","received_events_url":"https://api.github.com/users/pretenderjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pretenderjs/FakeXMLHttpRequest","description":"A fake XMLHttpRequest object for testing in browsers","fork":false,"url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest","forks_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/forks","keys_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/teams","hooks_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/hooks","issue_events_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/issues/events{/number}","events_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/events","assignees_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/assignees{/user}","branches_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/branches{/branch}","tags_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/tags","blobs_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/git/refs{/sha}","trees_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/statuses/{sha}","languages_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/languages","stargazers_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/stargazers","contributors_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/contributors","subscribers_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/subscribers","subscription_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/subscription","commits_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/commits{/sha}","git_commits_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/git/commits{/sha}","comments_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/comments{/number}","issue_comment_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/issues/comments{/number}","contents_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/contents/{+path}","compare_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/merges","archive_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/downloads","issues_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/issues{/number}","pulls_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/pulls{/number}","milestones_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/milestones{/number}","notifications_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/labels{/name}","releases_url":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/releases{/id}","created_at":"2013-10-05T16:19:58Z","updated_at":"2015-08-11T21:42:01Z","pushed_at":"2015-10-25T18:42:30Z","git_url":"git://github.com/pretenderjs/FakeXMLHttpRequest.git","ssh_url":"git@github.com:pretenderjs/FakeXMLHttpRequest.git","clone_url":"https://github.com/pretenderjs/FakeXMLHttpRequest.git","svn_url":"https://github.com/pretenderjs/FakeXMLHttpRequest","homepage":"","size":369,"stargazers_count":16,"watchers_count":16,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":3,"forks":13,"open_issues":3,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/pulls/20"},"html":{"href":"https://github.com/pretenderjs/FakeXMLHttpRequest/pull/20"},"issue":{"href":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/issues/20"},"comments":{"href":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/pretenderjs/FakeXMLHttpRequest/statuses/b79277599359b9fa883febb0e460a8f31535e3c2"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}