{"action":"created","comment":{"url":"https://api.github.com/repos/apiaryio/dredd/pulls/comments/24812300","id":24812300,"diff_hunk":"@@ -217,4 +220,16 @@ class TransactionRunner\n         configuration.emitter.emit 'test error', error, test if error\n         return callback()\n \n+  isMultipart: (requestOptions) =>\n+    caseInsensitiveRequestHeaders = {}\n+    for key, value of requestOptions.headers\n+      caseInsensitiveRequestHeaders[key.toLowerCase()] = value\n+    caseInsensitiveRequestHeaders['content-type']?.indexOf(\"multipart\") > -1\n+\n+  replaceLineFeedInBody: (transaction, requestOptions) =>\n+    transaction.request['body'] = transaction.request['body'].replace(/\\n/g, '\\r\\n')","path":"src/transaction-runner.coffee","position":null,"original_position":45,"commit_id":"c3a1ce1b802a0713a846dcef3dd43a771db4dadf","original_commit_id":"c373e79d58c3b764def8acbf7ec1df64f690725f","user":{"login":"netmilk","id":79609,"avatar_url":"https://avatars.githubusercontent.com/u/79609?v=3","gravatar_id":"","url":"https://api.github.com/users/netmilk","html_url":"https://github.com/netmilk","followers_url":"https://api.github.com/users/netmilk/followers","following_url":"https://api.github.com/users/netmilk/following{/other_user}","gists_url":"https://api.github.com/users/netmilk/gists{/gist_id}","starred_url":"https://api.github.com/users/netmilk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netmilk/subscriptions","organizations_url":"https://api.github.com/users/netmilk/orgs","repos_url":"https://api.github.com/users/netmilk/repos","events_url":"https://api.github.com/users/netmilk/events{/privacy}","received_events_url":"https://api.github.com/users/netmilk/received_events","type":"User","site_admin":false},"body":"Added scenario for this","created_at":"2015-02-17T12:19:50Z","updated_at":"2015-02-17T12:19:50Z","html_url":"https://github.com/apiaryio/dredd/pull/148#discussion_r24812300","pull_request_url":"https://api.github.com/repos/apiaryio/dredd/pulls/148","_links":{"self":{"href":"https://api.github.com/repos/apiaryio/dredd/pulls/comments/24812300"},"html":{"href":"https://github.com/apiaryio/dredd/pull/148#discussion_r24812300"},"pull_request":{"href":"https://api.github.com/repos/apiaryio/dredd/pulls/148"}}},"pull_request":{"url":"https://api.github.com/repos/apiaryio/dredd/pulls/148","id":29382504,"html_url":"https://github.com/apiaryio/dredd/pull/148","diff_url":"https://github.com/apiaryio/dredd/pull/148.diff","patch_url":"https://github.com/apiaryio/dredd/pull/148.patch","issue_url":"https://api.github.com/repos/apiaryio/dredd/issues/148","number":148,"state":"open","locked":false,"title":"Adding CR to multipart requests based on multipart content-type header, ...","user":{"login":"netmilk","id":79609,"avatar_url":"https://avatars.githubusercontent.com/u/79609?v=3","gravatar_id":"","url":"https://api.github.com/users/netmilk","html_url":"https://github.com/netmilk","followers_url":"https://api.github.com/users/netmilk/followers","following_url":"https://api.github.com/users/netmilk/following{/other_user}","gists_url":"https://api.github.com/users/netmilk/gists{/gist_id}","starred_url":"https://api.github.com/users/netmilk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netmilk/subscriptions","organizations_url":"https://api.github.com/users/netmilk/orgs","repos_url":"https://api.github.com/users/netmilk/repos","events_url":"https://api.github.com/users/netmilk/events{/privacy}","received_events_url":"https://api.github.com/users/netmilk/received_events","type":"User","site_admin":false},"body":"...Closes #74 #118 #29","created_at":"2015-02-16T15:53:18Z","updated_at":"2015-02-17T12:19:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6600227691cdcfbfcc08e925d508c868fcec0e92","assignee":{"login":"kuba-kubula","id":136198,"avatar_url":"https://avatars.githubusercontent.com/u/136198?v=3","gravatar_id":"","url":"https://api.github.com/users/kuba-kubula","html_url":"https://github.com/kuba-kubula","followers_url":"https://api.github.com/users/kuba-kubula/followers","following_url":"https://api.github.com/users/kuba-kubula/following{/other_user}","gists_url":"https://api.github.com/users/kuba-kubula/gists{/gist_id}","starred_url":"https://api.github.com/users/kuba-kubula/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuba-kubula/subscriptions","organizations_url":"https://api.github.com/users/kuba-kubula/orgs","repos_url":"https://api.github.com/users/kuba-kubula/repos","events_url":"https://api.github.com/users/kuba-kubula/events{/privacy}","received_events_url":"https://api.github.com/users/kuba-kubula/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/apiaryio/dredd/pulls/148/commits","review_comments_url":"https://api.github.com/repos/apiaryio/dredd/pulls/148/comments","review_comment_url":"https://api.github.com/repos/apiaryio/dredd/pulls/comments/{number}","comments_url":"https://api.github.com/repos/apiaryio/dredd/issues/148/comments","statuses_url":"https://api.github.com/repos/apiaryio/dredd/statuses/c3a1ce1b802a0713a846dcef3dd43a771db4dadf","head":{"label":"apiaryio:netmilk/multipart","ref":"netmilk/multipart","sha":"c3a1ce1b802a0713a846dcef3dd43a771db4dadf","user":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"repo":{"id":12590052,"name":"dredd","full_name":"apiaryio/dredd","owner":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apiaryio/dredd","description":"API Blueprint testing tool","fork":false,"url":"https://api.github.com/repos/apiaryio/dredd","forks_url":"https://api.github.com/repos/apiaryio/dredd/forks","keys_url":"https://api.github.com/repos/apiaryio/dredd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apiaryio/dredd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apiaryio/dredd/teams","hooks_url":"https://api.github.com/repos/apiaryio/dredd/hooks","issue_events_url":"https://api.github.com/repos/apiaryio/dredd/issues/events{/number}","events_url":"https://api.github.com/repos/apiaryio/dredd/events","assignees_url":"https://api.github.com/repos/apiaryio/dredd/assignees{/user}","branches_url":"https://api.github.com/repos/apiaryio/dredd/branches{/branch}","tags_url":"https://api.github.com/repos/apiaryio/dredd/tags","blobs_url":"https://api.github.com/repos/apiaryio/dredd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apiaryio/dredd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apiaryio/dredd/git/refs{/sha}","trees_url":"https://api.github.com/repos/apiaryio/dredd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apiaryio/dredd/statuses/{sha}","languages_url":"https://api.github.com/repos/apiaryio/dredd/languages","stargazers_url":"https://api.github.com/repos/apiaryio/dredd/stargazers","contributors_url":"https://api.github.com/repos/apiaryio/dredd/contributors","subscribers_url":"https://api.github.com/repos/apiaryio/dredd/subscribers","subscription_url":"https://api.github.com/repos/apiaryio/dredd/subscription","commits_url":"https://api.github.com/repos/apiaryio/dredd/commits{/sha}","git_commits_url":"https://api.github.com/repos/apiaryio/dredd/git/commits{/sha}","comments_url":"https://api.github.com/repos/apiaryio/dredd/comments{/number}","issue_comment_url":"https://api.github.com/repos/apiaryio/dredd/issues/comments/{number}","contents_url":"https://api.github.com/repos/apiaryio/dredd/contents/{+path}","compare_url":"https://api.github.com/repos/apiaryio/dredd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apiaryio/dredd/merges","archive_url":"https://api.github.com/repos/apiaryio/dredd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apiaryio/dredd/downloads","issues_url":"https://api.github.com/repos/apiaryio/dredd/issues{/number}","pulls_url":"https://api.github.com/repos/apiaryio/dredd/pulls{/number}","milestones_url":"https://api.github.com/repos/apiaryio/dredd/milestones{/number}","notifications_url":"https://api.github.com/repos/apiaryio/dredd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apiaryio/dredd/labels{/name}","releases_url":"https://api.github.com/repos/apiaryio/dredd/releases{/id}","created_at":"2013-09-04T12:21:35Z","updated_at":"2015-02-17T03:21:50Z","pushed_at":"2015-02-17T12:14:01Z","git_url":"git://github.com/apiaryio/dredd.git","ssh_url":"git@github.com:apiaryio/dredd.git","clone_url":"https://github.com/apiaryio/dredd.git","svn_url":"https://github.com/apiaryio/dredd","homepage":null,"size":1619,"stargazers_count":393,"watchers_count":393,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":32,"mirror_url":null,"open_issues_count":30,"forks":32,"open_issues":30,"watchers":393,"default_branch":"master"}},"base":{"label":"apiaryio:master","ref":"master","sha":"fe6f186fdf590d2ec4a251fb47291417790a1ee1","user":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"repo":{"id":12590052,"name":"dredd","full_name":"apiaryio/dredd","owner":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apiaryio/dredd","description":"API Blueprint testing tool","fork":false,"url":"https://api.github.com/repos/apiaryio/dredd","forks_url":"https://api.github.com/repos/apiaryio/dredd/forks","keys_url":"https://api.github.com/repos/apiaryio/dredd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apiaryio/dredd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apiaryio/dredd/teams","hooks_url":"https://api.github.com/repos/apiaryio/dredd/hooks","issue_events_url":"https://api.github.com/repos/apiaryio/dredd/issues/events{/number}","events_url":"https://api.github.com/repos/apiaryio/dredd/events","assignees_url":"https://api.github.com/repos/apiaryio/dredd/assignees{/user}","branches_url":"https://api.github.com/repos/apiaryio/dredd/branches{/branch}","tags_url":"https://api.github.com/repos/apiaryio/dredd/tags","blobs_url":"https://api.github.com/repos/apiaryio/dredd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apiaryio/dredd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apiaryio/dredd/git/refs{/sha}","trees_url":"https://api.github.com/repos/apiaryio/dredd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apiaryio/dredd/statuses/{sha}","languages_url":"https://api.github.com/repos/apiaryio/dredd/languages","stargazers_url":"https://api.github.com/repos/apiaryio/dredd/stargazers","contributors_url":"https://api.github.com/repos/apiaryio/dredd/contributors","subscribers_url":"https://api.github.com/repos/apiaryio/dredd/subscribers","subscription_url":"https://api.github.com/repos/apiaryio/dredd/subscription","commits_url":"https://api.github.com/repos/apiaryio/dredd/commits{/sha}","git_commits_url":"https://api.github.com/repos/apiaryio/dredd/git/commits{/sha}","comments_url":"https://api.github.com/repos/apiaryio/dredd/comments{/number}","issue_comment_url":"https://api.github.com/repos/apiaryio/dredd/issues/comments/{number}","contents_url":"https://api.github.com/repos/apiaryio/dredd/contents/{+path}","compare_url":"https://api.github.com/repos/apiaryio/dredd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apiaryio/dredd/merges","archive_url":"https://api.github.com/repos/apiaryio/dredd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apiaryio/dredd/downloads","issues_url":"https://api.github.com/repos/apiaryio/dredd/issues{/number}","pulls_url":"https://api.github.com/repos/apiaryio/dredd/pulls{/number}","milestones_url":"https://api.github.com/repos/apiaryio/dredd/milestones{/number}","notifications_url":"https://api.github.com/repos/apiaryio/dredd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apiaryio/dredd/labels{/name}","releases_url":"https://api.github.com/repos/apiaryio/dredd/releases{/id}","created_at":"2013-09-04T12:21:35Z","updated_at":"2015-02-17T03:21:50Z","pushed_at":"2015-02-17T12:14:01Z","git_url":"git://github.com/apiaryio/dredd.git","ssh_url":"git@github.com:apiaryio/dredd.git","clone_url":"https://github.com/apiaryio/dredd.git","svn_url":"https://github.com/apiaryio/dredd","homepage":null,"size":1619,"stargazers_count":393,"watchers_count":393,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":32,"mirror_url":null,"open_issues_count":30,"forks":32,"open_issues":30,"watchers":393,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apiaryio/dredd/pulls/148"},"html":{"href":"https://github.com/apiaryio/dredd/pull/148"},"issue":{"href":"https://api.github.com/repos/apiaryio/dredd/issues/148"},"comments":{"href":"https://api.github.com/repos/apiaryio/dredd/issues/148/comments"},"review_comments":{"href":"https://api.github.com/repos/apiaryio/dredd/pulls/148/comments"},"review_comment":{"href":"https://api.github.com/repos/apiaryio/dredd/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/apiaryio/dredd/pulls/148/commits"},"statuses":{"href":"https://api.github.com/repos/apiaryio/dredd/statuses/c3a1ce1b802a0713a846dcef3dd43a771db4dadf"}}}}