{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/publish.webmaker.org/pulls/comments/35429616","id":35429616,"diff_hunk":"@@ -8,13 +8,35 @@ var validFiles;\n \n var create = {};\n \n-// We get buffers from the client as arrays of octets\n-var testBuffer = (new Buffer('test')).toJSON().data;\n-\n-var userToken = {\n-  authorization: 'token ag-dubs'\n+var validHeaders = {\n+  authorization: 'token ag-dubs',\n+  'content-type': 'multipart/form-data; boundary=AaB03x'\n };\n \n+function constructMultipartPayload(fields, data) {","path":"test/lib/fixtures/files/create.js","position":14,"original_position":14,"commit_id":"09e3ae6d628ad5b8f894af29fea5d6b9c1f7f944","original_commit_id":"09e3ae6d628ad5b8f894af29fea5d6b9c1f7f944","user":{"login":"sedge","id":1616860,"avatar_url":"https://avatars.githubusercontent.com/u/1616860?v=3","gravatar_id":"","url":"https://api.github.com/users/sedge","html_url":"https://github.com/sedge","followers_url":"https://api.github.com/users/sedge/followers","following_url":"https://api.github.com/users/sedge/following{/other_user}","gists_url":"https://api.github.com/users/sedge/gists{/gist_id}","starred_url":"https://api.github.com/users/sedge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sedge/subscriptions","organizations_url":"https://api.github.com/users/sedge/orgs","repos_url":"https://api.github.com/users/sedge/repos","events_url":"https://api.github.com/users/sedge/events{/privacy}","received_events_url":"https://api.github.com/users/sedge/received_events","type":"User","site_admin":false},"body":"I normally despise code duplication, but these tests really need an overhaul anyway so I got lazy.","created_at":"2015-07-24T14:52:45Z","updated_at":"2015-07-24T14:52:45Z","html_url":"https://github.com/mozilla/publish.webmaker.org/pull/119#discussion_r35429616","pull_request_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/pulls/119","_links":{"self":{"href":"https://api.github.com/repos/mozilla/publish.webmaker.org/pulls/comments/35429616"},"html":{"href":"https://github.com/mozilla/publish.webmaker.org/pull/119#discussion_r35429616"},"pull_request":{"href":"https://api.github.com/repos/mozilla/publish.webmaker.org/pulls/119"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/publish.webmaker.org/pulls/119","id":40571986,"html_url":"https://github.com/mozilla/publish.webmaker.org/pull/119","diff_url":"https://github.com/mozilla/publish.webmaker.org/pull/119.diff","patch_url":"https://github.com/mozilla/publish.webmaker.org/pull/119.patch","issue_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/issues/119","number":119,"state":"open","locked":false,"title":"Fix #52 - Use form/multi-part instead of JSON to send file data","user":{"login":"sedge","id":1616860,"avatar_url":"https://avatars.githubusercontent.com/u/1616860?v=3","gravatar_id":"","url":"https://api.github.com/users/sedge","html_url":"https://github.com/sedge","followers_url":"https://api.github.com/users/sedge/followers","following_url":"https://api.github.com/users/sedge/following{/other_user}","gists_url":"https://api.github.com/users/sedge/gists{/gist_id}","starred_url":"https://api.github.com/users/sedge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sedge/subscriptions","organizations_url":"https://api.github.com/users/sedge/orgs","repos_url":"https://api.github.com/users/sedge/repos","events_url":"https://api.github.com/users/sedge/events{/privacy}","received_events_url":"https://api.github.com/users/sedge/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-22T14:38:55Z","updated_at":"2015-07-24T14:52:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0edff34977052615623d67b6f394862c43332281","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/pulls/119/commits","review_comments_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/pulls/119/comments","review_comment_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/issues/119/comments","statuses_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/statuses/09e3ae6d628ad5b8f894af29fea5d6b9c1f7f944","head":{"label":"sedge:multipart","ref":"multipart","sha":"09e3ae6d628ad5b8f894af29fea5d6b9c1f7f944","user":{"login":"sedge","id":1616860,"avatar_url":"https://avatars.githubusercontent.com/u/1616860?v=3","gravatar_id":"","url":"https://api.github.com/users/sedge","html_url":"https://github.com/sedge","followers_url":"https://api.github.com/users/sedge/followers","following_url":"https://api.github.com/users/sedge/following{/other_user}","gists_url":"https://api.github.com/users/sedge/gists{/gist_id}","starred_url":"https://api.github.com/users/sedge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sedge/subscriptions","organizations_url":"https://api.github.com/users/sedge/orgs","repos_url":"https://api.github.com/users/sedge/repos","events_url":"https://api.github.com/users/sedge/events{/privacy}","received_events_url":"https://api.github.com/users/sedge/received_events","type":"User","site_admin":false},"repo":{"id":37083519,"name":"publish.webmaker.org","full_name":"sedge/publish.webmaker.org","owner":{"login":"sedge","id":1616860,"avatar_url":"https://avatars.githubusercontent.com/u/1616860?v=3","gravatar_id":"","url":"https://api.github.com/users/sedge","html_url":"https://github.com/sedge","followers_url":"https://api.github.com/users/sedge/followers","following_url":"https://api.github.com/users/sedge/following{/other_user}","gists_url":"https://api.github.com/users/sedge/gists{/gist_id}","starred_url":"https://api.github.com/users/sedge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sedge/subscriptions","organizations_url":"https://api.github.com/users/sedge/orgs","repos_url":"https://api.github.com/users/sedge/repos","events_url":"https://api.github.com/users/sedge/events{/privacy}","received_events_url":"https://api.github.com/users/sedge/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sedge/publish.webmaker.org","description":"The teach.org publishing service for goggles and thimble","fork":true,"url":"https://api.github.com/repos/sedge/publish.webmaker.org","forks_url":"https://api.github.com/repos/sedge/publish.webmaker.org/forks","keys_url":"https://api.github.com/repos/sedge/publish.webmaker.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sedge/publish.webmaker.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sedge/publish.webmaker.org/teams","hooks_url":"https://api.github.com/repos/sedge/publish.webmaker.org/hooks","issue_events_url":"https://api.github.com/repos/sedge/publish.webmaker.org/issues/events{/number}","events_url":"https://api.github.com/repos/sedge/publish.webmaker.org/events","assignees_url":"https://api.github.com/repos/sedge/publish.webmaker.org/assignees{/user}","branches_url":"https://api.github.com/repos/sedge/publish.webmaker.org/branches{/branch}","tags_url":"https://api.github.com/repos/sedge/publish.webmaker.org/tags","blobs_url":"https://api.github.com/repos/sedge/publish.webmaker.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sedge/publish.webmaker.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sedge/publish.webmaker.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/sedge/publish.webmaker.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sedge/publish.webmaker.org/statuses/{sha}","languages_url":"https://api.github.com/repos/sedge/publish.webmaker.org/languages","stargazers_url":"https://api.github.com/repos/sedge/publish.webmaker.org/stargazers","contributors_url":"https://api.github.com/repos/sedge/publish.webmaker.org/contributors","subscribers_url":"https://api.github.com/repos/sedge/publish.webmaker.org/subscribers","subscription_url":"https://api.github.com/repos/sedge/publish.webmaker.org/subscription","commits_url":"https://api.github.com/repos/sedge/publish.webmaker.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/sedge/publish.webmaker.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/sedge/publish.webmaker.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/sedge/publish.webmaker.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/sedge/publish.webmaker.org/contents/{+path}","compare_url":"https://api.github.com/repos/sedge/publish.webmaker.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sedge/publish.webmaker.org/merges","archive_url":"https://api.github.com/repos/sedge/publish.webmaker.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sedge/publish.webmaker.org/downloads","issues_url":"https://api.github.com/repos/sedge/publish.webmaker.org/issues{/number}","pulls_url":"https://api.github.com/repos/sedge/publish.webmaker.org/pulls{/number}","milestones_url":"https://api.github.com/repos/sedge/publish.webmaker.org/milestones{/number}","notifications_url":"https://api.github.com/repos/sedge/publish.webmaker.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sedge/publish.webmaker.org/labels{/name}","releases_url":"https://api.github.com/repos/sedge/publish.webmaker.org/releases{/id}","created_at":"2015-06-08T18:02:41Z","updated_at":"2015-06-08T18:02:41Z","pushed_at":"2015-07-23T21:20:38Z","git_url":"git://github.com/sedge/publish.webmaker.org.git","ssh_url":"git@github.com:sedge/publish.webmaker.org.git","clone_url":"https://github.com/sedge/publish.webmaker.org.git","svn_url":"https://github.com/sedge/publish.webmaker.org","homepage":null,"size":630,"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":"mozilla:master","ref":"master","sha":"dae631d8134385581364abe128af5a52e4b35eb8","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":36752205,"name":"publish.webmaker.org","full_name":"mozilla/publish.webmaker.org","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/publish.webmaker.org","description":"The teach.org publishing service for goggles and thimble","fork":false,"url":"https://api.github.com/repos/mozilla/publish.webmaker.org","forks_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/forks","keys_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/teams","hooks_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/hooks","issue_events_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/events","assignees_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/tags","blobs_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/languages","stargazers_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/stargazers","contributors_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/contributors","subscribers_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/subscribers","subscription_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/subscription","commits_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/merges","archive_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/downloads","issues_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/publish.webmaker.org/releases{/id}","created_at":"2015-06-02T18:10:38Z","updated_at":"2015-06-15T17:40:35Z","pushed_at":"2015-07-23T23:57:32Z","git_url":"git://github.com/mozilla/publish.webmaker.org.git","ssh_url":"git@github.com:mozilla/publish.webmaker.org.git","clone_url":"https://github.com/mozilla/publish.webmaker.org.git","svn_url":"https://github.com/mozilla/publish.webmaker.org","homepage":"https://damp-anchorage-2948.herokuapp.com/","size":1468,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":16,"forks":3,"open_issues":16,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/publish.webmaker.org/pulls/119"},"html":{"href":"https://github.com/mozilla/publish.webmaker.org/pull/119"},"issue":{"href":"https://api.github.com/repos/mozilla/publish.webmaker.org/issues/119"},"comments":{"href":"https://api.github.com/repos/mozilla/publish.webmaker.org/issues/119/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/publish.webmaker.org/pulls/119/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/publish.webmaker.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/publish.webmaker.org/pulls/119/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/publish.webmaker.org/statuses/09e3ae6d628ad5b8f894af29fea5d6b9c1f7f944"}}}}