{"action":"created","comment":{"url":"https://api.github.com/repos/postmanlabs/postman-collection/pulls/comments/175784542","pull_request_review_id":105370559,"id":175784542,"diff_hunk":"@@ -83,17 +83,19 @@ _.assign(Request.prototype, /** @lends Request.prototype */ {\n         _.has(options, 'method') && (this.method = _.isString(options.method) ? options.method.toUpperCase() :\n             (options.method || DEFAULT_REQ_METHOD));\n \n+        var body;\n+\n         if (_.has(options, 'body')) {\n-            _.isString(options.body) && (options.body = { mode: 'raw', raw: options.body });\n-            !_.isPlainObject(options.body) && (delete options.body);\n+            body = options.body;","path":"lib/collection/request.js","position":null,"original_position":9,"commit_id":"79c67e8d312d1f83a4145b8d977aa4e376f36b2a","original_commit_id":"79c67e8d312d1f83a4145b8d977aa4e376f36b2a","user":{"login":"kamalaknn","id":8401064,"avatar_url":"https://avatars3.githubusercontent.com/u/8401064?v=4","gravatar_id":"","url":"https://api.github.com/users/kamalaknn","html_url":"https://github.com/kamalaknn","followers_url":"https://api.github.com/users/kamalaknn/followers","following_url":"https://api.github.com/users/kamalaknn/following{/other_user}","gists_url":"https://api.github.com/users/kamalaknn/gists{/gist_id}","starred_url":"https://api.github.com/users/kamalaknn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamalaknn/subscriptions","organizations_url":"https://api.github.com/users/kamalaknn/orgs","repos_url":"https://api.github.com/users/kamalaknn/repos","events_url":"https://api.github.com/users/kamalaknn/events{/privacy}","received_events_url":"https://api.github.com/users/kamalaknn/received_events","type":"User","site_admin":false},"body":"`body = _.isString(body) ? { mode: 'raw', raw: body } : options.body;`","created_at":"2018-03-20T14:26:01Z","updated_at":"2018-03-20T14:30:27Z","html_url":"https://github.com/postmanlabs/postman-collection/pull/607#discussion_r175784542","pull_request_url":"https://api.github.com/repos/postmanlabs/postman-collection/pulls/607","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/postmanlabs/postman-collection/pulls/comments/175784542"},"html":{"href":"https://github.com/postmanlabs/postman-collection/pull/607#discussion_r175784542"},"pull_request":{"href":"https://api.github.com/repos/postmanlabs/postman-collection/pulls/607"}}},"pull_request":{"url":"https://api.github.com/repos/postmanlabs/postman-collection/pulls/607","id":175846589,"html_url":"https://github.com/postmanlabs/postman-collection/pull/607","diff_url":"https://github.com/postmanlabs/postman-collection/pull/607.diff","patch_url":"https://github.com/postmanlabs/postman-collection/pull/607.patch","issue_url":"https://api.github.com/repos/postmanlabs/postman-collection/issues/607","number":607,"state":"open","locked":false,"title":"Request body sanity fix","user":{"login":"kunagpal","id":7289840,"avatar_url":"https://avatars3.githubusercontent.com/u/7289840?v=4","gravatar_id":"","url":"https://api.github.com/users/kunagpal","html_url":"https://github.com/kunagpal","followers_url":"https://api.github.com/users/kunagpal/followers","following_url":"https://api.github.com/users/kunagpal/following{/other_user}","gists_url":"https://api.github.com/users/kunagpal/gists{/gist_id}","starred_url":"https://api.github.com/users/kunagpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunagpal/subscriptions","organizations_url":"https://api.github.com/users/kunagpal/orgs","repos_url":"https://api.github.com/users/kunagpal/repos","events_url":"https://api.github.com/users/kunagpal/events{/privacy}","received_events_url":"https://api.github.com/users/kunagpal/received_events","type":"User","site_admin":false},"body":"cc @abhijitkane \r\n\r\nCloses #442 ","created_at":"2018-03-19T09:41:55Z","updated_at":"2018-03-20T14:30:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c4eb74a412263cbf1db6a5527838fd6dd107182b","assignee":{"login":"kunagpal","id":7289840,"avatar_url":"https://avatars3.githubusercontent.com/u/7289840?v=4","gravatar_id":"","url":"https://api.github.com/users/kunagpal","html_url":"https://github.com/kunagpal","followers_url":"https://api.github.com/users/kunagpal/followers","following_url":"https://api.github.com/users/kunagpal/following{/other_user}","gists_url":"https://api.github.com/users/kunagpal/gists{/gist_id}","starred_url":"https://api.github.com/users/kunagpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunagpal/subscriptions","organizations_url":"https://api.github.com/users/kunagpal/orgs","repos_url":"https://api.github.com/users/kunagpal/repos","events_url":"https://api.github.com/users/kunagpal/events{/privacy}","received_events_url":"https://api.github.com/users/kunagpal/received_events","type":"User","site_admin":false},"assignees":[{"login":"kunagpal","id":7289840,"avatar_url":"https://avatars3.githubusercontent.com/u/7289840?v=4","gravatar_id":"","url":"https://api.github.com/users/kunagpal","html_url":"https://github.com/kunagpal","followers_url":"https://api.github.com/users/kunagpal/followers","following_url":"https://api.github.com/users/kunagpal/following{/other_user}","gists_url":"https://api.github.com/users/kunagpal/gists{/gist_id}","starred_url":"https://api.github.com/users/kunagpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunagpal/subscriptions","organizations_url":"https://api.github.com/users/kunagpal/orgs","repos_url":"https://api.github.com/users/kunagpal/repos","events_url":"https://api.github.com/users/kunagpal/events{/privacy}","received_events_url":"https://api.github.com/users/kunagpal/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":330027845,"url":"https://api.github.com/repos/postmanlabs/postman-collection/labels/bug","name":"bug","color":"fc2929","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/postmanlabs/postman-collection/pulls/607/commits","review_comments_url":"https://api.github.com/repos/postmanlabs/postman-collection/pulls/607/comments","review_comment_url":"https://api.github.com/repos/postmanlabs/postman-collection/pulls/comments{/number}","comments_url":"https://api.github.com/repos/postmanlabs/postman-collection/issues/607/comments","statuses_url":"https://api.github.com/repos/postmanlabs/postman-collection/statuses/79c67e8d312d1f83a4145b8d977aa4e376f36b2a","head":{"label":"postmanlabs:feature/request-body-sanity-fix","ref":"feature/request-body-sanity-fix","sha":"79c67e8d312d1f83a4145b8d977aa4e376f36b2a","user":{"login":"postmanlabs","id":10251060,"avatar_url":"https://avatars2.githubusercontent.com/u/10251060?v=4","gravatar_id":"","url":"https://api.github.com/users/postmanlabs","html_url":"https://github.com/postmanlabs","followers_url":"https://api.github.com/users/postmanlabs/followers","following_url":"https://api.github.com/users/postmanlabs/following{/other_user}","gists_url":"https://api.github.com/users/postmanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/postmanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmanlabs/subscriptions","organizations_url":"https://api.github.com/users/postmanlabs/orgs","repos_url":"https://api.github.com/users/postmanlabs/repos","events_url":"https://api.github.com/users/postmanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/postmanlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":52270857,"name":"postman-collection","full_name":"postmanlabs/postman-collection","owner":{"login":"postmanlabs","id":10251060,"avatar_url":"https://avatars2.githubusercontent.com/u/10251060?v=4","gravatar_id":"","url":"https://api.github.com/users/postmanlabs","html_url":"https://github.com/postmanlabs","followers_url":"https://api.github.com/users/postmanlabs/followers","following_url":"https://api.github.com/users/postmanlabs/following{/other_user}","gists_url":"https://api.github.com/users/postmanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/postmanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmanlabs/subscriptions","organizations_url":"https://api.github.com/users/postmanlabs/orgs","repos_url":"https://api.github.com/users/postmanlabs/repos","events_url":"https://api.github.com/users/postmanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/postmanlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/postmanlabs/postman-collection","description":"Javascript module that allows a developer to work with Postman Collections","fork":false,"url":"https://api.github.com/repos/postmanlabs/postman-collection","forks_url":"https://api.github.com/repos/postmanlabs/postman-collection/forks","keys_url":"https://api.github.com/repos/postmanlabs/postman-collection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/postmanlabs/postman-collection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/postmanlabs/postman-collection/teams","hooks_url":"https://api.github.com/repos/postmanlabs/postman-collection/hooks","issue_events_url":"https://api.github.com/repos/postmanlabs/postman-collection/issues/events{/number}","events_url":"https://api.github.com/repos/postmanlabs/postman-collection/events","assignees_url":"https://api.github.com/repos/postmanlabs/postman-collection/assignees{/user}","branches_url":"https://api.github.com/repos/postmanlabs/postman-collection/branches{/branch}","tags_url":"https://api.github.com/repos/postmanlabs/postman-collection/tags","blobs_url":"https://api.github.com/repos/postmanlabs/postman-collection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/postmanlabs/postman-collection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/postmanlabs/postman-collection/git/refs{/sha}","trees_url":"https://api.github.com/repos/postmanlabs/postman-collection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/postmanlabs/postman-collection/statuses/{sha}","languages_url":"https://api.github.com/repos/postmanlabs/postman-collection/languages","stargazers_url":"https://api.github.com/repos/postmanlabs/postman-collection/stargazers","contributors_url":"https://api.github.com/repos/postmanlabs/postman-collection/contributors","subscribers_url":"https://api.github.com/repos/postmanlabs/postman-collection/subscribers","subscription_url":"https://api.github.com/repos/postmanlabs/postman-collection/subscription","commits_url":"https://api.github.com/repos/postmanlabs/postman-collection/commits{/sha}","git_commits_url":"https://api.github.com/repos/postmanlabs/postman-collection/git/commits{/sha}","comments_url":"https://api.github.com/repos/postmanlabs/postman-collection/comments{/number}","issue_comment_url":"https://api.github.com/repos/postmanlabs/postman-collection/issues/comments{/number}","contents_url":"https://api.github.com/repos/postmanlabs/postman-collection/contents/{+path}","compare_url":"https://api.github.com/repos/postmanlabs/postman-collection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/postmanlabs/postman-collection/merges","archive_url":"https://api.github.com/repos/postmanlabs/postman-collection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/postmanlabs/postman-collection/downloads","issues_url":"https://api.github.com/repos/postmanlabs/postman-collection/issues{/number}","pulls_url":"https://api.github.com/repos/postmanlabs/postman-collection/pulls{/number}","milestones_url":"https://api.github.com/repos/postmanlabs/postman-collection/milestones{/number}","notifications_url":"https://api.github.com/repos/postmanlabs/postman-collection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/postmanlabs/postman-collection/labels{/name}","releases_url":"https://api.github.com/repos/postmanlabs/postman-collection/releases{/id}","deployments_url":"https://api.github.com/repos/postmanlabs/postman-collection/deployments","created_at":"2016-02-22T12:08:36Z","updated_at":"2018-03-19T11:56:42Z","pushed_at":"2018-03-19T19:55:37Z","git_url":"git://github.com/postmanlabs/postman-collection.git","ssh_url":"git@github.com:postmanlabs/postman-collection.git","clone_url":"https://github.com/postmanlabs/postman-collection.git","svn_url":"https://github.com/postmanlabs/postman-collection","homepage":"https://www.getpostman.com/","size":1943,"stargazers_count":80,"watchers_count":80,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":35,"mirror_url":null,"archived":false,"open_issues_count":33,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":35,"open_issues":33,"watchers":80,"default_branch":"develop"}},"base":{"label":"postmanlabs:develop","ref":"develop","sha":"d972bdc9ace06d532f9c7408ee06c6275ec35c35","user":{"login":"postmanlabs","id":10251060,"avatar_url":"https://avatars2.githubusercontent.com/u/10251060?v=4","gravatar_id":"","url":"https://api.github.com/users/postmanlabs","html_url":"https://github.com/postmanlabs","followers_url":"https://api.github.com/users/postmanlabs/followers","following_url":"https://api.github.com/users/postmanlabs/following{/other_user}","gists_url":"https://api.github.com/users/postmanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/postmanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmanlabs/subscriptions","organizations_url":"https://api.github.com/users/postmanlabs/orgs","repos_url":"https://api.github.com/users/postmanlabs/repos","events_url":"https://api.github.com/users/postmanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/postmanlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":52270857,"name":"postman-collection","full_name":"postmanlabs/postman-collection","owner":{"login":"postmanlabs","id":10251060,"avatar_url":"https://avatars2.githubusercontent.com/u/10251060?v=4","gravatar_id":"","url":"https://api.github.com/users/postmanlabs","html_url":"https://github.com/postmanlabs","followers_url":"https://api.github.com/users/postmanlabs/followers","following_url":"https://api.github.com/users/postmanlabs/following{/other_user}","gists_url":"https://api.github.com/users/postmanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/postmanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmanlabs/subscriptions","organizations_url":"https://api.github.com/users/postmanlabs/orgs","repos_url":"https://api.github.com/users/postmanlabs/repos","events_url":"https://api.github.com/users/postmanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/postmanlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/postmanlabs/postman-collection","description":"Javascript module that allows a developer to work with Postman Collections","fork":false,"url":"https://api.github.com/repos/postmanlabs/postman-collection","forks_url":"https://api.github.com/repos/postmanlabs/postman-collection/forks","keys_url":"https://api.github.com/repos/postmanlabs/postman-collection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/postmanlabs/postman-collection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/postmanlabs/postman-collection/teams","hooks_url":"https://api.github.com/repos/postmanlabs/postman-collection/hooks","issue_events_url":"https://api.github.com/repos/postmanlabs/postman-collection/issues/events{/number}","events_url":"https://api.github.com/repos/postmanlabs/postman-collection/events","assignees_url":"https://api.github.com/repos/postmanlabs/postman-collection/assignees{/user}","branches_url":"https://api.github.com/repos/postmanlabs/postman-collection/branches{/branch}","tags_url":"https://api.github.com/repos/postmanlabs/postman-collection/tags","blobs_url":"https://api.github.com/repos/postmanlabs/postman-collection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/postmanlabs/postman-collection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/postmanlabs/postman-collection/git/refs{/sha}","trees_url":"https://api.github.com/repos/postmanlabs/postman-collection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/postmanlabs/postman-collection/statuses/{sha}","languages_url":"https://api.github.com/repos/postmanlabs/postman-collection/languages","stargazers_url":"https://api.github.com/repos/postmanlabs/postman-collection/stargazers","contributors_url":"https://api.github.com/repos/postmanlabs/postman-collection/contributors","subscribers_url":"https://api.github.com/repos/postmanlabs/postman-collection/subscribers","subscription_url":"https://api.github.com/repos/postmanlabs/postman-collection/subscription","commits_url":"https://api.github.com/repos/postmanlabs/postman-collection/commits{/sha}","git_commits_url":"https://api.github.com/repos/postmanlabs/postman-collection/git/commits{/sha}","comments_url":"https://api.github.com/repos/postmanlabs/postman-collection/comments{/number}","issue_comment_url":"https://api.github.com/repos/postmanlabs/postman-collection/issues/comments{/number}","contents_url":"https://api.github.com/repos/postmanlabs/postman-collection/contents/{+path}","compare_url":"https://api.github.com/repos/postmanlabs/postman-collection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/postmanlabs/postman-collection/merges","archive_url":"https://api.github.com/repos/postmanlabs/postman-collection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/postmanlabs/postman-collection/downloads","issues_url":"https://api.github.com/repos/postmanlabs/postman-collection/issues{/number}","pulls_url":"https://api.github.com/repos/postmanlabs/postman-collection/pulls{/number}","milestones_url":"https://api.github.com/repos/postmanlabs/postman-collection/milestones{/number}","notifications_url":"https://api.github.com/repos/postmanlabs/postman-collection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/postmanlabs/postman-collection/labels{/name}","releases_url":"https://api.github.com/repos/postmanlabs/postman-collection/releases{/id}","deployments_url":"https://api.github.com/repos/postmanlabs/postman-collection/deployments","created_at":"2016-02-22T12:08:36Z","updated_at":"2018-03-19T11:56:42Z","pushed_at":"2018-03-19T19:55:37Z","git_url":"git://github.com/postmanlabs/postman-collection.git","ssh_url":"git@github.com:postmanlabs/postman-collection.git","clone_url":"https://github.com/postmanlabs/postman-collection.git","svn_url":"https://github.com/postmanlabs/postman-collection","homepage":"https://www.getpostman.com/","size":1943,"stargazers_count":80,"watchers_count":80,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":35,"mirror_url":null,"archived":false,"open_issues_count":33,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":35,"open_issues":33,"watchers":80,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/postmanlabs/postman-collection/pulls/607"},"html":{"href":"https://github.com/postmanlabs/postman-collection/pull/607"},"issue":{"href":"https://api.github.com/repos/postmanlabs/postman-collection/issues/607"},"comments":{"href":"https://api.github.com/repos/postmanlabs/postman-collection/issues/607/comments"},"review_comments":{"href":"https://api.github.com/repos/postmanlabs/postman-collection/pulls/607/comments"},"review_comment":{"href":"https://api.github.com/repos/postmanlabs/postman-collection/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/postmanlabs/postman-collection/pulls/607/commits"},"statuses":{"href":"https://api.github.com/repos/postmanlabs/postman-collection/statuses/79c67e8d312d1f83a4145b8d977aa4e376f36b2a"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"kamalaknn"}}