{"action":"created","comment":{"url":"https://api.github.com/repos/ipfs/js-ipfs/pulls/comments/54929632","id":54929632,"diff_hunk":"@@ -143,6 +148,69 @@ describe('config', () => {\n         done()\n       })\n     })\n+\n+    describe('/config/replace', () => {\n+      it('returns 400 if no config is provided', (done) => {\n+        const form = new FormData()\n+        const headers = form.getHeaders()\n+\n+        streamToPromise(form).then(payload => {","path":"tests/test-http-api/test-config.js","position":28,"original_position":28,"commit_id":"6b0838b9ebd995247792af8b72a9ebe4233cae9a","original_commit_id":"6b0838b9ebd995247792af8b72a9ebe4233cae9a","user":{"login":"xicombd","id":1211330,"avatar_url":"https://avatars.githubusercontent.com/u/1211330?v=3","gravatar_id":"","url":"https://api.github.com/users/xicombd","html_url":"https://github.com/xicombd","followers_url":"https://api.github.com/users/xicombd/followers","following_url":"https://api.github.com/users/xicombd/following{/other_user}","gists_url":"https://api.github.com/users/xicombd/gists{/gist_id}","starred_url":"https://api.github.com/users/xicombd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xicombd/subscriptions","organizations_url":"https://api.github.com/users/xicombd/orgs","repos_url":"https://api.github.com/users/xicombd/repos","events_url":"https://api.github.com/users/xicombd/events{/privacy}","received_events_url":"https://api.github.com/users/xicombd/received_events","type":"User","site_admin":false},"body":"Nope, [this project is still on standard 5](https://github.com/ipfs/js-ipfs/blob/master/package.json#L63), and we have those all over the place...  If you want, I can update standard and make all the changes on another PR, so we don't pollute this one :octocat: ","created_at":"2016-03-03T19:04:42Z","updated_at":"2016-03-03T19:04:42Z","html_url":"https://github.com/ipfs/js-ipfs/pull/75#discussion_r54929632","pull_request_url":"https://api.github.com/repos/ipfs/js-ipfs/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/ipfs/js-ipfs/pulls/comments/54929632"},"html":{"href":"https://github.com/ipfs/js-ipfs/pull/75#discussion_r54929632"},"pull_request":{"href":"https://api.github.com/repos/ipfs/js-ipfs/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/ipfs/js-ipfs/pulls/75","id":61599828,"html_url":"https://github.com/ipfs/js-ipfs/pull/75","diff_url":"https://github.com/ipfs/js-ipfs/pull/75.diff","patch_url":"https://github.com/ipfs/js-ipfs/pull/75.patch","issue_url":"https://api.github.com/repos/ipfs/js-ipfs/issues/75","number":75,"state":"open","locked":false,"title":"Add /api/v0/config/replace endpoint","user":{"login":"xicombd","id":1211330,"avatar_url":"https://avatars.githubusercontent.com/u/1211330?v=3","gravatar_id":"","url":"https://api.github.com/users/xicombd","html_url":"https://github.com/xicombd","followers_url":"https://api.github.com/users/xicombd/followers","following_url":"https://api.github.com/users/xicombd/following{/other_user}","gists_url":"https://api.github.com/users/xicombd/gists{/gist_id}","starred_url":"https://api.github.com/users/xicombd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xicombd/subscriptions","organizations_url":"https://api.github.com/users/xicombd/orgs","repos_url":"https://api.github.com/users/xicombd/repos","events_url":"https://api.github.com/users/xicombd/events{/privacy}","received_events_url":"https://api.github.com/users/xicombd/received_events","type":"User","site_admin":false},"body":"Implements the `/api/v0/config/replace` as specified at https://github.com/ipfs/http-api-spec/pull/29\r\n\r\nUses [`ipfs-multipart` ](https://github.com/xicombd/ipfs-multipart) to process the payload that `js-ipfs-api` sends.\r\n\r\nRelated to #49 & similar to #72 & #74 :rocket: ","created_at":"2016-03-03T18:03:00Z","updated_at":"2016-03-03T19:04:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"69c7c49d04bc8b198821a00e1701ac4156dd3d2f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ipfs/js-ipfs/pulls/75/commits","review_comments_url":"https://api.github.com/repos/ipfs/js-ipfs/pulls/75/comments","review_comment_url":"https://api.github.com/repos/ipfs/js-ipfs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ipfs/js-ipfs/issues/75/comments","statuses_url":"https://api.github.com/repos/ipfs/js-ipfs/statuses/6b0838b9ebd995247792af8b72a9ebe4233cae9a","head":{"label":"ipfs:feature/http-api-config-replace","ref":"feature/http-api-config-replace","sha":"6b0838b9ebd995247792af8b72a9ebe4233cae9a","user":{"login":"ipfs","id":10536621,"avatar_url":"https://avatars.githubusercontent.com/u/10536621?v=3","gravatar_id":"","url":"https://api.github.com/users/ipfs","html_url":"https://github.com/ipfs","followers_url":"https://api.github.com/users/ipfs/followers","following_url":"https://api.github.com/users/ipfs/following{/other_user}","gists_url":"https://api.github.com/users/ipfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ipfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipfs/subscriptions","organizations_url":"https://api.github.com/users/ipfs/orgs","repos_url":"https://api.github.com/users/ipfs/repos","events_url":"https://api.github.com/users/ipfs/events{/privacy}","received_events_url":"https://api.github.com/users/ipfs/received_events","type":"Organization","site_admin":false},"repo":{"id":20312497,"name":"js-ipfs","full_name":"ipfs/js-ipfs","owner":{"login":"ipfs","id":10536621,"avatar_url":"https://avatars.githubusercontent.com/u/10536621?v=3","gravatar_id":"","url":"https://api.github.com/users/ipfs","html_url":"https://github.com/ipfs","followers_url":"https://api.github.com/users/ipfs/followers","following_url":"https://api.github.com/users/ipfs/following{/other_user}","gists_url":"https://api.github.com/users/ipfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ipfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipfs/subscriptions","organizations_url":"https://api.github.com/users/ipfs/orgs","repos_url":"https://api.github.com/users/ipfs/repos","events_url":"https://api.github.com/users/ipfs/events{/privacy}","received_events_url":"https://api.github.com/users/ipfs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ipfs/js-ipfs","description":"IPFS implementation in JavaScript","fork":false,"url":"https://api.github.com/repos/ipfs/js-ipfs","forks_url":"https://api.github.com/repos/ipfs/js-ipfs/forks","keys_url":"https://api.github.com/repos/ipfs/js-ipfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ipfs/js-ipfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ipfs/js-ipfs/teams","hooks_url":"https://api.github.com/repos/ipfs/js-ipfs/hooks","issue_events_url":"https://api.github.com/repos/ipfs/js-ipfs/issues/events{/number}","events_url":"https://api.github.com/repos/ipfs/js-ipfs/events","assignees_url":"https://api.github.com/repos/ipfs/js-ipfs/assignees{/user}","branches_url":"https://api.github.com/repos/ipfs/js-ipfs/branches{/branch}","tags_url":"https://api.github.com/repos/ipfs/js-ipfs/tags","blobs_url":"https://api.github.com/repos/ipfs/js-ipfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ipfs/js-ipfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ipfs/js-ipfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ipfs/js-ipfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ipfs/js-ipfs/statuses/{sha}","languages_url":"https://api.github.com/repos/ipfs/js-ipfs/languages","stargazers_url":"https://api.github.com/repos/ipfs/js-ipfs/stargazers","contributors_url":"https://api.github.com/repos/ipfs/js-ipfs/contributors","subscribers_url":"https://api.github.com/repos/ipfs/js-ipfs/subscribers","subscription_url":"https://api.github.com/repos/ipfs/js-ipfs/subscription","commits_url":"https://api.github.com/repos/ipfs/js-ipfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ipfs/js-ipfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ipfs/js-ipfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ipfs/js-ipfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ipfs/js-ipfs/contents/{+path}","compare_url":"https://api.github.com/repos/ipfs/js-ipfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ipfs/js-ipfs/merges","archive_url":"https://api.github.com/repos/ipfs/js-ipfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ipfs/js-ipfs/downloads","issues_url":"https://api.github.com/repos/ipfs/js-ipfs/issues{/number}","pulls_url":"https://api.github.com/repos/ipfs/js-ipfs/pulls{/number}","milestones_url":"https://api.github.com/repos/ipfs/js-ipfs/milestones{/number}","notifications_url":"https://api.github.com/repos/ipfs/js-ipfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ipfs/js-ipfs/labels{/name}","releases_url":"https://api.github.com/repos/ipfs/js-ipfs/releases{/id}","deployments_url":"https://api.github.com/repos/ipfs/js-ipfs/deployments","created_at":"2014-05-30T00:31:06Z","updated_at":"2016-03-02T19:42:56Z","pushed_at":"2016-03-03T18:03:00Z","git_url":"git://github.com/ipfs/js-ipfs.git","ssh_url":"git@github.com:ipfs/js-ipfs.git","clone_url":"https://github.com/ipfs/js-ipfs.git","svn_url":"https://github.com/ipfs/js-ipfs","homepage":"http://ipfs.io/","size":333,"stargazers_count":347,"watchers_count":347,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":16,"forks":39,"open_issues":16,"watchers":347,"default_branch":"master"}},"base":{"label":"ipfs:master","ref":"master","sha":"876ab2eff2a020de90c116f08d75e28bd1f59c47","user":{"login":"ipfs","id":10536621,"avatar_url":"https://avatars.githubusercontent.com/u/10536621?v=3","gravatar_id":"","url":"https://api.github.com/users/ipfs","html_url":"https://github.com/ipfs","followers_url":"https://api.github.com/users/ipfs/followers","following_url":"https://api.github.com/users/ipfs/following{/other_user}","gists_url":"https://api.github.com/users/ipfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ipfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipfs/subscriptions","organizations_url":"https://api.github.com/users/ipfs/orgs","repos_url":"https://api.github.com/users/ipfs/repos","events_url":"https://api.github.com/users/ipfs/events{/privacy}","received_events_url":"https://api.github.com/users/ipfs/received_events","type":"Organization","site_admin":false},"repo":{"id":20312497,"name":"js-ipfs","full_name":"ipfs/js-ipfs","owner":{"login":"ipfs","id":10536621,"avatar_url":"https://avatars.githubusercontent.com/u/10536621?v=3","gravatar_id":"","url":"https://api.github.com/users/ipfs","html_url":"https://github.com/ipfs","followers_url":"https://api.github.com/users/ipfs/followers","following_url":"https://api.github.com/users/ipfs/following{/other_user}","gists_url":"https://api.github.com/users/ipfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ipfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipfs/subscriptions","organizations_url":"https://api.github.com/users/ipfs/orgs","repos_url":"https://api.github.com/users/ipfs/repos","events_url":"https://api.github.com/users/ipfs/events{/privacy}","received_events_url":"https://api.github.com/users/ipfs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ipfs/js-ipfs","description":"IPFS implementation in JavaScript","fork":false,"url":"https://api.github.com/repos/ipfs/js-ipfs","forks_url":"https://api.github.com/repos/ipfs/js-ipfs/forks","keys_url":"https://api.github.com/repos/ipfs/js-ipfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ipfs/js-ipfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ipfs/js-ipfs/teams","hooks_url":"https://api.github.com/repos/ipfs/js-ipfs/hooks","issue_events_url":"https://api.github.com/repos/ipfs/js-ipfs/issues/events{/number}","events_url":"https://api.github.com/repos/ipfs/js-ipfs/events","assignees_url":"https://api.github.com/repos/ipfs/js-ipfs/assignees{/user}","branches_url":"https://api.github.com/repos/ipfs/js-ipfs/branches{/branch}","tags_url":"https://api.github.com/repos/ipfs/js-ipfs/tags","blobs_url":"https://api.github.com/repos/ipfs/js-ipfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ipfs/js-ipfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ipfs/js-ipfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ipfs/js-ipfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ipfs/js-ipfs/statuses/{sha}","languages_url":"https://api.github.com/repos/ipfs/js-ipfs/languages","stargazers_url":"https://api.github.com/repos/ipfs/js-ipfs/stargazers","contributors_url":"https://api.github.com/repos/ipfs/js-ipfs/contributors","subscribers_url":"https://api.github.com/repos/ipfs/js-ipfs/subscribers","subscription_url":"https://api.github.com/repos/ipfs/js-ipfs/subscription","commits_url":"https://api.github.com/repos/ipfs/js-ipfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ipfs/js-ipfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ipfs/js-ipfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ipfs/js-ipfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ipfs/js-ipfs/contents/{+path}","compare_url":"https://api.github.com/repos/ipfs/js-ipfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ipfs/js-ipfs/merges","archive_url":"https://api.github.com/repos/ipfs/js-ipfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ipfs/js-ipfs/downloads","issues_url":"https://api.github.com/repos/ipfs/js-ipfs/issues{/number}","pulls_url":"https://api.github.com/repos/ipfs/js-ipfs/pulls{/number}","milestones_url":"https://api.github.com/repos/ipfs/js-ipfs/milestones{/number}","notifications_url":"https://api.github.com/repos/ipfs/js-ipfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ipfs/js-ipfs/labels{/name}","releases_url":"https://api.github.com/repos/ipfs/js-ipfs/releases{/id}","deployments_url":"https://api.github.com/repos/ipfs/js-ipfs/deployments","created_at":"2014-05-30T00:31:06Z","updated_at":"2016-03-02T19:42:56Z","pushed_at":"2016-03-03T18:03:00Z","git_url":"git://github.com/ipfs/js-ipfs.git","ssh_url":"git@github.com:ipfs/js-ipfs.git","clone_url":"https://github.com/ipfs/js-ipfs.git","svn_url":"https://github.com/ipfs/js-ipfs","homepage":"http://ipfs.io/","size":333,"stargazers_count":347,"watchers_count":347,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":16,"forks":39,"open_issues":16,"watchers":347,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ipfs/js-ipfs/pulls/75"},"html":{"href":"https://github.com/ipfs/js-ipfs/pull/75"},"issue":{"href":"https://api.github.com/repos/ipfs/js-ipfs/issues/75"},"comments":{"href":"https://api.github.com/repos/ipfs/js-ipfs/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/ipfs/js-ipfs/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/ipfs/js-ipfs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ipfs/js-ipfs/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/ipfs/js-ipfs/statuses/6b0838b9ebd995247792af8b72a9ebe4233cae9a"}}}}