{"action":"created","comment":{"url":"https://api.github.com/repos/wheresrhys/fetch-mock/pulls/comments/143285461","pull_request_review_id":67781452,"id":143285461,"diff_hunk":"@@ -36,6 +36,7 @@ Replaces `fetch()` with a stub which records its calls, grouped by route, and op\n         * `headers`: Set the response headers. (`object`)\n         * `throws`: If this property is present then a `Promise` rejected with the value of `throws` is returned\n         * `sendAsJson`: This property determines whether or not the request body should be JSON.stringified before being sent (defaults to true).\n+        * `includeContentLength`: Set this property to true to automatically add the `content-length` header (defaults to false).","path":"docs/api.md","position":4,"original_position":4,"commit_id":"51527a190be102271ab8a7bb97a49b65a81ea02b","original_commit_id":"51527a190be102271ab8a7bb97a49b65a81ea02b","user":{"login":"wheresrhys","id":447559,"avatar_url":"https://avatars1.githubusercontent.com/u/447559?v=4","gravatar_id":"","url":"https://api.github.com/users/wheresrhys","html_url":"https://github.com/wheresrhys","followers_url":"https://api.github.com/users/wheresrhys/followers","following_url":"https://api.github.com/users/wheresrhys/following{/other_user}","gists_url":"https://api.github.com/users/wheresrhys/gists{/gist_id}","starred_url":"https://api.github.com/users/wheresrhys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wheresrhys/subscriptions","organizations_url":"https://api.github.com/users/wheresrhys/orgs","repos_url":"https://api.github.com/users/wheresrhys/repos","events_url":"https://api.github.com/users/wheresrhys/events{/privacy}","received_events_url":"https://api.github.com/users/wheresrhys/received_events","type":"User","site_admin":false},"body":"needs documenting under the `configure` method too","created_at":"2017-10-06T20:16:22Z","updated_at":"2017-10-06T20:18:38Z","html_url":"https://github.com/wheresrhys/fetch-mock/pull/222#discussion_r143285461","pull_request_url":"https://api.github.com/repos/wheresrhys/fetch-mock/pulls/222","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/wheresrhys/fetch-mock/pulls/comments/143285461"},"html":{"href":"https://github.com/wheresrhys/fetch-mock/pull/222#discussion_r143285461"},"pull_request":{"href":"https://api.github.com/repos/wheresrhys/fetch-mock/pulls/222"}}},"pull_request":{"url":"https://api.github.com/repos/wheresrhys/fetch-mock/pulls/222","id":144777935,"html_url":"https://github.com/wheresrhys/fetch-mock/pull/222","diff_url":"https://github.com/wheresrhys/fetch-mock/pull/222.diff","patch_url":"https://github.com/wheresrhys/fetch-mock/pull/222.patch","issue_url":"https://api.github.com/repos/wheresrhys/fetch-mock/issues/222","number":222,"state":"open","locked":false,"title":"Added includeContentLength to the configuration","user":{"login":"Halt001","id":9273697,"avatar_url":"https://avatars3.githubusercontent.com/u/9273697?v=4","gravatar_id":"","url":"https://api.github.com/users/Halt001","html_url":"https://github.com/Halt001","followers_url":"https://api.github.com/users/Halt001/followers","following_url":"https://api.github.com/users/Halt001/following{/other_user}","gists_url":"https://api.github.com/users/Halt001/gists{/gist_id}","starred_url":"https://api.github.com/users/Halt001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Halt001/subscriptions","organizations_url":"https://api.github.com/users/Halt001/orgs","repos_url":"https://api.github.com/users/Halt001/repos","events_url":"https://api.github.com/users/Halt001/events{/privacy}","received_events_url":"https://api.github.com/users/Halt001/received_events","type":"User","site_admin":false},"body":"I've added the `includeContentLength` option to both the global and the per route settings as you suggested. I've also added a couple of unit-tests and added a line to the documentation.\r\n\r\nI hope this is what you had in mind.\r\n\r\nP.S. One or two browser tests fail, but they also failed before I touched the code. This happens both on my local machine and on a Travis build.","created_at":"2017-10-04T21:16:25Z","updated_at":"2017-10-06T20:18:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c986cb48866e14ca924b141d57acff9dd41184b","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/wheresrhys/fetch-mock/pulls/222/commits","review_comments_url":"https://api.github.com/repos/wheresrhys/fetch-mock/pulls/222/comments","review_comment_url":"https://api.github.com/repos/wheresrhys/fetch-mock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wheresrhys/fetch-mock/issues/222/comments","statuses_url":"https://api.github.com/repos/wheresrhys/fetch-mock/statuses/51527a190be102271ab8a7bb97a49b65a81ea02b","head":{"label":"Halt001:master","ref":"master","sha":"51527a190be102271ab8a7bb97a49b65a81ea02b","user":{"login":"Halt001","id":9273697,"avatar_url":"https://avatars3.githubusercontent.com/u/9273697?v=4","gravatar_id":"","url":"https://api.github.com/users/Halt001","html_url":"https://github.com/Halt001","followers_url":"https://api.github.com/users/Halt001/followers","following_url":"https://api.github.com/users/Halt001/following{/other_user}","gists_url":"https://api.github.com/users/Halt001/gists{/gist_id}","starred_url":"https://api.github.com/users/Halt001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Halt001/subscriptions","organizations_url":"https://api.github.com/users/Halt001/orgs","repos_url":"https://api.github.com/users/Halt001/repos","events_url":"https://api.github.com/users/Halt001/events{/privacy}","received_events_url":"https://api.github.com/users/Halt001/received_events","type":"User","site_admin":false},"repo":{"id":105816122,"name":"fetch-mock","full_name":"Halt001/fetch-mock","owner":{"login":"Halt001","id":9273697,"avatar_url":"https://avatars3.githubusercontent.com/u/9273697?v=4","gravatar_id":"","url":"https://api.github.com/users/Halt001","html_url":"https://github.com/Halt001","followers_url":"https://api.github.com/users/Halt001/followers","following_url":"https://api.github.com/users/Halt001/following{/other_user}","gists_url":"https://api.github.com/users/Halt001/gists{/gist_id}","starred_url":"https://api.github.com/users/Halt001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Halt001/subscriptions","organizations_url":"https://api.github.com/users/Halt001/orgs","repos_url":"https://api.github.com/users/Halt001/repos","events_url":"https://api.github.com/users/Halt001/events{/privacy}","received_events_url":"https://api.github.com/users/Halt001/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Halt001/fetch-mock","description":"Mock http requests made using fetch","fork":true,"url":"https://api.github.com/repos/Halt001/fetch-mock","forks_url":"https://api.github.com/repos/Halt001/fetch-mock/forks","keys_url":"https://api.github.com/repos/Halt001/fetch-mock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Halt001/fetch-mock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Halt001/fetch-mock/teams","hooks_url":"https://api.github.com/repos/Halt001/fetch-mock/hooks","issue_events_url":"https://api.github.com/repos/Halt001/fetch-mock/issues/events{/number}","events_url":"https://api.github.com/repos/Halt001/fetch-mock/events","assignees_url":"https://api.github.com/repos/Halt001/fetch-mock/assignees{/user}","branches_url":"https://api.github.com/repos/Halt001/fetch-mock/branches{/branch}","tags_url":"https://api.github.com/repos/Halt001/fetch-mock/tags","blobs_url":"https://api.github.com/repos/Halt001/fetch-mock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Halt001/fetch-mock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Halt001/fetch-mock/git/refs{/sha}","trees_url":"https://api.github.com/repos/Halt001/fetch-mock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Halt001/fetch-mock/statuses/{sha}","languages_url":"https://api.github.com/repos/Halt001/fetch-mock/languages","stargazers_url":"https://api.github.com/repos/Halt001/fetch-mock/stargazers","contributors_url":"https://api.github.com/repos/Halt001/fetch-mock/contributors","subscribers_url":"https://api.github.com/repos/Halt001/fetch-mock/subscribers","subscription_url":"https://api.github.com/repos/Halt001/fetch-mock/subscription","commits_url":"https://api.github.com/repos/Halt001/fetch-mock/commits{/sha}","git_commits_url":"https://api.github.com/repos/Halt001/fetch-mock/git/commits{/sha}","comments_url":"https://api.github.com/repos/Halt001/fetch-mock/comments{/number}","issue_comment_url":"https://api.github.com/repos/Halt001/fetch-mock/issues/comments{/number}","contents_url":"https://api.github.com/repos/Halt001/fetch-mock/contents/{+path}","compare_url":"https://api.github.com/repos/Halt001/fetch-mock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Halt001/fetch-mock/merges","archive_url":"https://api.github.com/repos/Halt001/fetch-mock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Halt001/fetch-mock/downloads","issues_url":"https://api.github.com/repos/Halt001/fetch-mock/issues{/number}","pulls_url":"https://api.github.com/repos/Halt001/fetch-mock/pulls{/number}","milestones_url":"https://api.github.com/repos/Halt001/fetch-mock/milestones{/number}","notifications_url":"https://api.github.com/repos/Halt001/fetch-mock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Halt001/fetch-mock/labels{/name}","releases_url":"https://api.github.com/repos/Halt001/fetch-mock/releases{/id}","deployments_url":"https://api.github.com/repos/Halt001/fetch-mock/deployments","created_at":"2017-10-04T20:40:17Z","updated_at":"2017-10-04T20:40:18Z","pushed_at":"2017-10-04T20:58:18Z","git_url":"git://github.com/Halt001/fetch-mock.git","ssh_url":"git@github.com:Halt001/fetch-mock.git","clone_url":"https://github.com/Halt001/fetch-mock.git","svn_url":"https://github.com/Halt001/fetch-mock","homepage":"http://www.wheresrhys.co.uk/fetch-mock/","size":322,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"wheresrhys:master","ref":"master","sha":"1faed05595a64746e17ae1d82268f1a4d5fe3b65","user":{"login":"wheresrhys","id":447559,"avatar_url":"https://avatars1.githubusercontent.com/u/447559?v=4","gravatar_id":"","url":"https://api.github.com/users/wheresrhys","html_url":"https://github.com/wheresrhys","followers_url":"https://api.github.com/users/wheresrhys/followers","following_url":"https://api.github.com/users/wheresrhys/following{/other_user}","gists_url":"https://api.github.com/users/wheresrhys/gists{/gist_id}","starred_url":"https://api.github.com/users/wheresrhys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wheresrhys/subscriptions","organizations_url":"https://api.github.com/users/wheresrhys/orgs","repos_url":"https://api.github.com/users/wheresrhys/repos","events_url":"https://api.github.com/users/wheresrhys/events{/privacy}","received_events_url":"https://api.github.com/users/wheresrhys/received_events","type":"User","site_admin":false},"repo":{"id":34877706,"name":"fetch-mock","full_name":"wheresrhys/fetch-mock","owner":{"login":"wheresrhys","id":447559,"avatar_url":"https://avatars1.githubusercontent.com/u/447559?v=4","gravatar_id":"","url":"https://api.github.com/users/wheresrhys","html_url":"https://github.com/wheresrhys","followers_url":"https://api.github.com/users/wheresrhys/followers","following_url":"https://api.github.com/users/wheresrhys/following{/other_user}","gists_url":"https://api.github.com/users/wheresrhys/gists{/gist_id}","starred_url":"https://api.github.com/users/wheresrhys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wheresrhys/subscriptions","organizations_url":"https://api.github.com/users/wheresrhys/orgs","repos_url":"https://api.github.com/users/wheresrhys/repos","events_url":"https://api.github.com/users/wheresrhys/events{/privacy}","received_events_url":"https://api.github.com/users/wheresrhys/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wheresrhys/fetch-mock","description":"Mock http requests made using fetch","fork":false,"url":"https://api.github.com/repos/wheresrhys/fetch-mock","forks_url":"https://api.github.com/repos/wheresrhys/fetch-mock/forks","keys_url":"https://api.github.com/repos/wheresrhys/fetch-mock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wheresrhys/fetch-mock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wheresrhys/fetch-mock/teams","hooks_url":"https://api.github.com/repos/wheresrhys/fetch-mock/hooks","issue_events_url":"https://api.github.com/repos/wheresrhys/fetch-mock/issues/events{/number}","events_url":"https://api.github.com/repos/wheresrhys/fetch-mock/events","assignees_url":"https://api.github.com/repos/wheresrhys/fetch-mock/assignees{/user}","branches_url":"https://api.github.com/repos/wheresrhys/fetch-mock/branches{/branch}","tags_url":"https://api.github.com/repos/wheresrhys/fetch-mock/tags","blobs_url":"https://api.github.com/repos/wheresrhys/fetch-mock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wheresrhys/fetch-mock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wheresrhys/fetch-mock/git/refs{/sha}","trees_url":"https://api.github.com/repos/wheresrhys/fetch-mock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wheresrhys/fetch-mock/statuses/{sha}","languages_url":"https://api.github.com/repos/wheresrhys/fetch-mock/languages","stargazers_url":"https://api.github.com/repos/wheresrhys/fetch-mock/stargazers","contributors_url":"https://api.github.com/repos/wheresrhys/fetch-mock/contributors","subscribers_url":"https://api.github.com/repos/wheresrhys/fetch-mock/subscribers","subscription_url":"https://api.github.com/repos/wheresrhys/fetch-mock/subscription","commits_url":"https://api.github.com/repos/wheresrhys/fetch-mock/commits{/sha}","git_commits_url":"https://api.github.com/repos/wheresrhys/fetch-mock/git/commits{/sha}","comments_url":"https://api.github.com/repos/wheresrhys/fetch-mock/comments{/number}","issue_comment_url":"https://api.github.com/repos/wheresrhys/fetch-mock/issues/comments{/number}","contents_url":"https://api.github.com/repos/wheresrhys/fetch-mock/contents/{+path}","compare_url":"https://api.github.com/repos/wheresrhys/fetch-mock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wheresrhys/fetch-mock/merges","archive_url":"https://api.github.com/repos/wheresrhys/fetch-mock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wheresrhys/fetch-mock/downloads","issues_url":"https://api.github.com/repos/wheresrhys/fetch-mock/issues{/number}","pulls_url":"https://api.github.com/repos/wheresrhys/fetch-mock/pulls{/number}","milestones_url":"https://api.github.com/repos/wheresrhys/fetch-mock/milestones{/number}","notifications_url":"https://api.github.com/repos/wheresrhys/fetch-mock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wheresrhys/fetch-mock/labels{/name}","releases_url":"https://api.github.com/repos/wheresrhys/fetch-mock/releases{/id}","deployments_url":"https://api.github.com/repos/wheresrhys/fetch-mock/deployments","created_at":"2015-04-30T21:27:58Z","updated_at":"2017-10-04T10:12:52Z","pushed_at":"2017-10-04T21:16:25Z","git_url":"git://github.com/wheresrhys/fetch-mock.git","ssh_url":"git@github.com:wheresrhys/fetch-mock.git","clone_url":"https://github.com/wheresrhys/fetch-mock.git","svn_url":"https://github.com/wheresrhys/fetch-mock","homepage":"http://www.wheresrhys.co.uk/fetch-mock/","size":321,"stargazers_count":445,"watchers_count":445,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":56,"mirror_url":null,"open_issues_count":9,"forks":56,"open_issues":9,"watchers":445,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wheresrhys/fetch-mock/pulls/222"},"html":{"href":"https://github.com/wheresrhys/fetch-mock/pull/222"},"issue":{"href":"https://api.github.com/repos/wheresrhys/fetch-mock/issues/222"},"comments":{"href":"https://api.github.com/repos/wheresrhys/fetch-mock/issues/222/comments"},"review_comments":{"href":"https://api.github.com/repos/wheresrhys/fetch-mock/pulls/222/comments"},"review_comment":{"href":"https://api.github.com/repos/wheresrhys/fetch-mock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wheresrhys/fetch-mock/pulls/222/commits"},"statuses":{"href":"https://api.github.com/repos/wheresrhys/fetch-mock/statuses/51527a190be102271ab8a7bb97a49b65a81ea02b"}},"author_association":"NONE"}}
{"actor":{"display_login":"wheresrhys"}}