{"action":"created","comment":{"url":"https://api.github.com/repos/go-amz/amz/pulls/comments/25178844","id":25178844,"diff_hunk":"@@ -106,35 +118,37 @@ func (b *Bucket) Multi(key, contType string, perm ACL) (*Multi, error) {\n //\n // See http://goo.gl/XP8kL for details.\n func (b *Bucket) InitMulti(key string, contType string, perm ACL) (*Multi, error) {\n-\theaders := map[string][]string{\n-\t\t\"Content-Type\":   {contType},\n-\t\t\"Content-Length\": {\"0\"},\n-\t\t\"x-amz-acl\":      {string(perm)},\n-\t}\n-\tparams := map[string][]string{\n-\t\t\"uploads\": {\"\"},\n+\n+\treq, err := http.NewRequest(\"POST\", b.Region.ResolveS3BucketEndpoint(b.Name), nil)\n+\tif err != nil {\n+\t\treturn nil, err\n \t}\n-\treq := &request{\n-\t\tmethod:  \"POST\",\n-\t\tbucket:  b.Name,\n-\t\tpath:    key,\n-\t\theaders: headers,\n-\t\tparams:  params,\n+\treq.URL.Path += key\n+\n+\tquery := req.URL.Query()\n+\tquery.Add(\"upload\", \"\")\n+\treq.URL.RawQuery = query.Encode()\n+","path":"s3/multi.go","position":109,"original_position":109,"commit_id":"9dd0a8054ac5381cf9582509024c2c5009a2d216","original_commit_id":"9dd0a8054ac5381cf9582509024c2c5009a2d216","user":{"login":"katco-","id":5490961,"avatar_url":"https://avatars.githubusercontent.com/u/5490961?v=3","gravatar_id":"","url":"https://api.github.com/users/katco-","html_url":"https://github.com/katco-","followers_url":"https://api.github.com/users/katco-/followers","following_url":"https://api.github.com/users/katco-/following{/other_user}","gists_url":"https://api.github.com/users/katco-/gists{/gist_id}","starred_url":"https://api.github.com/users/katco-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katco-/subscriptions","organizations_url":"https://api.github.com/users/katco-/orgs","repos_url":"https://api.github.com/users/katco-/repos","events_url":"https://api.github.com/users/katco-/events{/privacy}","received_events_url":"https://api.github.com/users/katco-/received_events","type":"User","site_admin":false},"body":"Present for readability.","created_at":"2015-02-23T16:43:13Z","updated_at":"2015-02-23T16:43:13Z","html_url":"https://github.com/go-amz/amz/pull/27#discussion_r25178844","pull_request_url":"https://api.github.com/repos/go-amz/amz/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/go-amz/amz/pulls/comments/25178844"},"html":{"href":"https://github.com/go-amz/amz/pull/27#discussion_r25178844"},"pull_request":{"href":"https://api.github.com/repos/go-amz/amz/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/go-amz/amz/pulls/27","id":29138249,"html_url":"https://github.com/go-amz/amz/pull/27","diff_url":"https://github.com/go-amz/amz/pull/27.diff","patch_url":"https://github.com/go-amz/amz/pull/27.patch","issue_url":"https://api.github.com/repos/go-amz/amz/issues/27","number":27,"state":"open","locked":false,"title":"Added support for v4 signing to S3.","user":{"login":"katco-","id":5490961,"avatar_url":"https://avatars.githubusercontent.com/u/5490961?v=3","gravatar_id":"","url":"https://api.github.com/users/katco-","html_url":"https://github.com/katco-","followers_url":"https://api.github.com/users/katco-/followers","following_url":"https://api.github.com/users/katco-/following{/other_user}","gists_url":"https://api.github.com/users/katco-/gists{/gist_id}","starred_url":"https://api.github.com/users/katco-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katco-/subscriptions","organizations_url":"https://api.github.com/users/katco-/orgs","repos_url":"https://api.github.com/users/katco-/repos","events_url":"https://api.github.com/users/katco-/events{/privacy}","received_events_url":"https://api.github.com/users/katco-/received_events","type":"User","site_admin":false},"body":"- S3 constructor now takes a Signer function. This indicates the preferred signing methodology.\r\n- Users can still use the recommended type of signing by using the Signer defined on the region.","created_at":"2015-02-11T23:16:11Z","updated_at":"2015-02-23T16:43:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"27f24bbe862941fbc80cf17f04c4dd9572b19760","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/go-amz/amz/pulls/27/commits","review_comments_url":"https://api.github.com/repos/go-amz/amz/pulls/27/comments","review_comment_url":"https://api.github.com/repos/go-amz/amz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/go-amz/amz/issues/27/comments","statuses_url":"https://api.github.com/repos/go-amz/amz/statuses/9dd0a8054ac5381cf9582509024c2c5009a2d216","head":{"label":"katco-:v3-unstable","ref":"v3-unstable","sha":"9dd0a8054ac5381cf9582509024c2c5009a2d216","user":{"login":"katco-","id":5490961,"avatar_url":"https://avatars.githubusercontent.com/u/5490961?v=3","gravatar_id":"","url":"https://api.github.com/users/katco-","html_url":"https://github.com/katco-","followers_url":"https://api.github.com/users/katco-/followers","following_url":"https://api.github.com/users/katco-/following{/other_user}","gists_url":"https://api.github.com/users/katco-/gists{/gist_id}","starred_url":"https://api.github.com/users/katco-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katco-/subscriptions","organizations_url":"https://api.github.com/users/katco-/orgs","repos_url":"https://api.github.com/users/katco-/repos","events_url":"https://api.github.com/users/katco-/events{/privacy}","received_events_url":"https://api.github.com/users/katco-/received_events","type":"User","site_admin":false},"repo":{"id":30545930,"name":"amz","full_name":"katco-/amz","owner":{"login":"katco-","id":5490961,"avatar_url":"https://avatars.githubusercontent.com/u/5490961?v=3","gravatar_id":"","url":"https://api.github.com/users/katco-","html_url":"https://github.com/katco-","followers_url":"https://api.github.com/users/katco-/followers","following_url":"https://api.github.com/users/katco-/following{/other_user}","gists_url":"https://api.github.com/users/katco-/gists{/gist_id}","starred_url":"https://api.github.com/users/katco-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katco-/subscriptions","organizations_url":"https://api.github.com/users/katco-/orgs","repos_url":"https://api.github.com/users/katco-/repos","events_url":"https://api.github.com/users/katco-/events{/privacy}","received_events_url":"https://api.github.com/users/katco-/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/katco-/amz","description":"Go package to interact with Amazon Web Services","fork":true,"url":"https://api.github.com/repos/katco-/amz","forks_url":"https://api.github.com/repos/katco-/amz/forks","keys_url":"https://api.github.com/repos/katco-/amz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/katco-/amz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/katco-/amz/teams","hooks_url":"https://api.github.com/repos/katco-/amz/hooks","issue_events_url":"https://api.github.com/repos/katco-/amz/issues/events{/number}","events_url":"https://api.github.com/repos/katco-/amz/events","assignees_url":"https://api.github.com/repos/katco-/amz/assignees{/user}","branches_url":"https://api.github.com/repos/katco-/amz/branches{/branch}","tags_url":"https://api.github.com/repos/katco-/amz/tags","blobs_url":"https://api.github.com/repos/katco-/amz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/katco-/amz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/katco-/amz/git/refs{/sha}","trees_url":"https://api.github.com/repos/katco-/amz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/katco-/amz/statuses/{sha}","languages_url":"https://api.github.com/repos/katco-/amz/languages","stargazers_url":"https://api.github.com/repos/katco-/amz/stargazers","contributors_url":"https://api.github.com/repos/katco-/amz/contributors","subscribers_url":"https://api.github.com/repos/katco-/amz/subscribers","subscription_url":"https://api.github.com/repos/katco-/amz/subscription","commits_url":"https://api.github.com/repos/katco-/amz/commits{/sha}","git_commits_url":"https://api.github.com/repos/katco-/amz/git/commits{/sha}","comments_url":"https://api.github.com/repos/katco-/amz/comments{/number}","issue_comment_url":"https://api.github.com/repos/katco-/amz/issues/comments{/number}","contents_url":"https://api.github.com/repos/katco-/amz/contents/{+path}","compare_url":"https://api.github.com/repos/katco-/amz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/katco-/amz/merges","archive_url":"https://api.github.com/repos/katco-/amz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/katco-/amz/downloads","issues_url":"https://api.github.com/repos/katco-/amz/issues{/number}","pulls_url":"https://api.github.com/repos/katco-/amz/pulls{/number}","milestones_url":"https://api.github.com/repos/katco-/amz/milestones{/number}","notifications_url":"https://api.github.com/repos/katco-/amz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/katco-/amz/labels{/name}","releases_url":"https://api.github.com/repos/katco-/amz/releases{/id}","created_at":"2015-02-09T16:38:13Z","updated_at":"2015-02-09T16:38:13Z","pushed_at":"2015-02-12T15:43:13Z","git_url":"git://github.com/katco-/amz.git","ssh_url":"git@github.com:katco-/amz.git","clone_url":"https://github.com/katco-/amz.git","svn_url":"https://github.com/katco-/amz","homepage":"https://wiki.ubuntu.com/goamz","size":489,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"v1"}},"base":{"label":"go-amz:v3-unstable","ref":"v3-unstable","sha":"d399399ec20d776ec3be985772548438209e83f9","user":{"login":"go-amz","id":8137365,"avatar_url":"https://avatars.githubusercontent.com/u/8137365?v=3","gravatar_id":"","url":"https://api.github.com/users/go-amz","html_url":"https://github.com/go-amz","followers_url":"https://api.github.com/users/go-amz/followers","following_url":"https://api.github.com/users/go-amz/following{/other_user}","gists_url":"https://api.github.com/users/go-amz/gists{/gist_id}","starred_url":"https://api.github.com/users/go-amz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-amz/subscriptions","organizations_url":"https://api.github.com/users/go-amz/orgs","repos_url":"https://api.github.com/users/go-amz/repos","events_url":"https://api.github.com/users/go-amz/events{/privacy}","received_events_url":"https://api.github.com/users/go-amz/received_events","type":"Organization","site_admin":false},"repo":{"id":27928684,"name":"amz","full_name":"go-amz/amz","owner":{"login":"go-amz","id":8137365,"avatar_url":"https://avatars.githubusercontent.com/u/8137365?v=3","gravatar_id":"","url":"https://api.github.com/users/go-amz","html_url":"https://github.com/go-amz","followers_url":"https://api.github.com/users/go-amz/followers","following_url":"https://api.github.com/users/go-amz/following{/other_user}","gists_url":"https://api.github.com/users/go-amz/gists{/gist_id}","starred_url":"https://api.github.com/users/go-amz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-amz/subscriptions","organizations_url":"https://api.github.com/users/go-amz/orgs","repos_url":"https://api.github.com/users/go-amz/repos","events_url":"https://api.github.com/users/go-amz/events{/privacy}","received_events_url":"https://api.github.com/users/go-amz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/go-amz/amz","description":"Go package to interact with Amazon Web Services","fork":false,"url":"https://api.github.com/repos/go-amz/amz","forks_url":"https://api.github.com/repos/go-amz/amz/forks","keys_url":"https://api.github.com/repos/go-amz/amz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/go-amz/amz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/go-amz/amz/teams","hooks_url":"https://api.github.com/repos/go-amz/amz/hooks","issue_events_url":"https://api.github.com/repos/go-amz/amz/issues/events{/number}","events_url":"https://api.github.com/repos/go-amz/amz/events","assignees_url":"https://api.github.com/repos/go-amz/amz/assignees{/user}","branches_url":"https://api.github.com/repos/go-amz/amz/branches{/branch}","tags_url":"https://api.github.com/repos/go-amz/amz/tags","blobs_url":"https://api.github.com/repos/go-amz/amz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/go-amz/amz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/go-amz/amz/git/refs{/sha}","trees_url":"https://api.github.com/repos/go-amz/amz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/go-amz/amz/statuses/{sha}","languages_url":"https://api.github.com/repos/go-amz/amz/languages","stargazers_url":"https://api.github.com/repos/go-amz/amz/stargazers","contributors_url":"https://api.github.com/repos/go-amz/amz/contributors","subscribers_url":"https://api.github.com/repos/go-amz/amz/subscribers","subscription_url":"https://api.github.com/repos/go-amz/amz/subscription","commits_url":"https://api.github.com/repos/go-amz/amz/commits{/sha}","git_commits_url":"https://api.github.com/repos/go-amz/amz/git/commits{/sha}","comments_url":"https://api.github.com/repos/go-amz/amz/comments{/number}","issue_comment_url":"https://api.github.com/repos/go-amz/amz/issues/comments{/number}","contents_url":"https://api.github.com/repos/go-amz/amz/contents/{+path}","compare_url":"https://api.github.com/repos/go-amz/amz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/go-amz/amz/merges","archive_url":"https://api.github.com/repos/go-amz/amz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/go-amz/amz/downloads","issues_url":"https://api.github.com/repos/go-amz/amz/issues{/number}","pulls_url":"https://api.github.com/repos/go-amz/amz/pulls{/number}","milestones_url":"https://api.github.com/repos/go-amz/amz/milestones{/number}","notifications_url":"https://api.github.com/repos/go-amz/amz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/go-amz/amz/labels{/name}","releases_url":"https://api.github.com/repos/go-amz/amz/releases{/id}","created_at":"2014-12-12T16:38:44Z","updated_at":"2015-02-22T11:42:35Z","pushed_at":"2015-02-22T12:28:54Z","git_url":"git://github.com/go-amz/amz.git","ssh_url":"git@github.com:go-amz/amz.git","clone_url":"https://github.com/go-amz/amz.git","svn_url":"https://github.com/go-amz/amz","homepage":"https://wiki.ubuntu.com/goamz","size":1094,"stargazers_count":42,"watchers_count":42,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":4,"forks":11,"open_issues":4,"watchers":42,"default_branch":"v1"}},"_links":{"self":{"href":"https://api.github.com/repos/go-amz/amz/pulls/27"},"html":{"href":"https://github.com/go-amz/amz/pull/27"},"issue":{"href":"https://api.github.com/repos/go-amz/amz/issues/27"},"comments":{"href":"https://api.github.com/repos/go-amz/amz/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/go-amz/amz/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/go-amz/amz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/go-amz/amz/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/go-amz/amz/statuses/9dd0a8054ac5381cf9582509024c2c5009a2d216"}}}}