{"action":"created","comment":{"url":"https://api.github.com/repos/minio/minio-go/pulls/comments/57534364","id":57534364,"diff_hunk":"@@ -0,0 +1,76 @@\n+/*\n+ * Minio Go Library for Amazon S3 Compatible Cloud Storage (C) 2016 Minio, Inc.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package minio\n+\n+import (\n+\t\"net/http\"\n+\t\"strings\"\n+)\n+\n+// supportCopyObjectHeaders - list of supported headers\n+var supportedCopyObjectHeaders = http.Header{","path":"api-put-object-copy.go","position":25,"original_position":25,"commit_id":"ea40e9a054aa1035187194147d75eae5ce7a4887","original_commit_id":"ea40e9a054aa1035187194147d75eae5ce7a4887","user":{"login":"abperiasamy","id":624261,"avatar_url":"https://avatars.githubusercontent.com/u/624261?v=3","gravatar_id":"","url":"https://api.github.com/users/abperiasamy","html_url":"https://github.com/abperiasamy","followers_url":"https://api.github.com/users/abperiasamy/followers","following_url":"https://api.github.com/users/abperiasamy/following{/other_user}","gists_url":"https://api.github.com/users/abperiasamy/gists{/gist_id}","starred_url":"https://api.github.com/users/abperiasamy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abperiasamy/subscriptions","organizations_url":"https://api.github.com/users/abperiasamy/orgs","repos_url":"https://api.github.com/users/abperiasamy/repos","events_url":"https://api.github.com/users/abperiasamy/events{/privacy}","received_events_url":"https://api.github.com/users/abperiasamy/received_events","type":"User","site_admin":false},"body":"This can simply be a const string array. I would even move it inside CopyObject method if it is not useful outside in the future.\r\n","created_at":"2016-03-27T20:37:02Z","updated_at":"2016-03-27T20:37:02Z","html_url":"https://github.com/minio/minio-go/pull/365#discussion_r57534364","pull_request_url":"https://api.github.com/repos/minio/minio-go/pulls/365","_links":{"self":{"href":"https://api.github.com/repos/minio/minio-go/pulls/comments/57534364"},"html":{"href":"https://github.com/minio/minio-go/pull/365#discussion_r57534364"},"pull_request":{"href":"https://api.github.com/repos/minio/minio-go/pulls/365"}}},"pull_request":{"url":"https://api.github.com/repos/minio/minio-go/pulls/365","id":63980688,"html_url":"https://github.com/minio/minio-go/pull/365","diff_url":"https://github.com/minio/minio-go/pull/365.diff","patch_url":"https://github.com/minio/minio-go/pull/365.patch","issue_url":"https://api.github.com/repos/minio/minio-go/issues/365","number":365,"state":"open","locked":false,"title":"api: Simplify copyObject API, return only error if any","user":{"login":"harshavardhana","id":622699,"avatar_url":"https://avatars.githubusercontent.com/u/622699?v=3","gravatar_id":"","url":"https://api.github.com/users/harshavardhana","html_url":"https://github.com/harshavardhana","followers_url":"https://api.github.com/users/harshavardhana/followers","following_url":"https://api.github.com/users/harshavardhana/following{/other_user}","gists_url":"https://api.github.com/users/harshavardhana/gists{/gist_id}","starred_url":"https://api.github.com/users/harshavardhana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harshavardhana/subscriptions","organizations_url":"https://api.github.com/users/harshavardhana/orgs","repos_url":"https://api.github.com/users/harshavardhana/repos","events_url":"https://api.github.com/users/harshavardhana/events{/privacy}","received_events_url":"https://api.github.com/users/harshavardhana/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-24T02:10:27Z","updated_at":"2016-03-27T20:37:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6f19eb03985d9158409e9352f6324055217fc08","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/minio/minio-go/pulls/365/commits","review_comments_url":"https://api.github.com/repos/minio/minio-go/pulls/365/comments","review_comment_url":"https://api.github.com/repos/minio/minio-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/minio/minio-go/issues/365/comments","statuses_url":"https://api.github.com/repos/minio/minio-go/statuses/ea40e9a054aa1035187194147d75eae5ce7a4887","head":{"label":"harshavardhana:awwalker-copy-api","ref":"awwalker-copy-api","sha":"ea40e9a054aa1035187194147d75eae5ce7a4887","user":{"login":"harshavardhana","id":622699,"avatar_url":"https://avatars.githubusercontent.com/u/622699?v=3","gravatar_id":"","url":"https://api.github.com/users/harshavardhana","html_url":"https://github.com/harshavardhana","followers_url":"https://api.github.com/users/harshavardhana/followers","following_url":"https://api.github.com/users/harshavardhana/following{/other_user}","gists_url":"https://api.github.com/users/harshavardhana/gists{/gist_id}","starred_url":"https://api.github.com/users/harshavardhana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harshavardhana/subscriptions","organizations_url":"https://api.github.com/users/harshavardhana/orgs","repos_url":"https://api.github.com/users/harshavardhana/repos","events_url":"https://api.github.com/users/harshavardhana/events{/privacy}","received_events_url":"https://api.github.com/users/harshavardhana/received_events","type":"User","site_admin":false},"repo":{"id":35012786,"name":"minio-go","full_name":"harshavardhana/minio-go","owner":{"login":"harshavardhana","id":622699,"avatar_url":"https://avatars.githubusercontent.com/u/622699?v=3","gravatar_id":"","url":"https://api.github.com/users/harshavardhana","html_url":"https://github.com/harshavardhana","followers_url":"https://api.github.com/users/harshavardhana/followers","following_url":"https://api.github.com/users/harshavardhana/following{/other_user}","gists_url":"https://api.github.com/users/harshavardhana/gists{/gist_id}","starred_url":"https://api.github.com/users/harshavardhana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harshavardhana/subscriptions","organizations_url":"https://api.github.com/users/harshavardhana/orgs","repos_url":"https://api.github.com/users/harshavardhana/repos","events_url":"https://api.github.com/users/harshavardhana/events{/privacy}","received_events_url":"https://api.github.com/users/harshavardhana/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/harshavardhana/minio-go","description":"Object storage library for Go programming language","fork":true,"url":"https://api.github.com/repos/harshavardhana/minio-go","forks_url":"https://api.github.com/repos/harshavardhana/minio-go/forks","keys_url":"https://api.github.com/repos/harshavardhana/minio-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harshavardhana/minio-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harshavardhana/minio-go/teams","hooks_url":"https://api.github.com/repos/harshavardhana/minio-go/hooks","issue_events_url":"https://api.github.com/repos/harshavardhana/minio-go/issues/events{/number}","events_url":"https://api.github.com/repos/harshavardhana/minio-go/events","assignees_url":"https://api.github.com/repos/harshavardhana/minio-go/assignees{/user}","branches_url":"https://api.github.com/repos/harshavardhana/minio-go/branches{/branch}","tags_url":"https://api.github.com/repos/harshavardhana/minio-go/tags","blobs_url":"https://api.github.com/repos/harshavardhana/minio-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harshavardhana/minio-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harshavardhana/minio-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/harshavardhana/minio-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harshavardhana/minio-go/statuses/{sha}","languages_url":"https://api.github.com/repos/harshavardhana/minio-go/languages","stargazers_url":"https://api.github.com/repos/harshavardhana/minio-go/stargazers","contributors_url":"https://api.github.com/repos/harshavardhana/minio-go/contributors","subscribers_url":"https://api.github.com/repos/harshavardhana/minio-go/subscribers","subscription_url":"https://api.github.com/repos/harshavardhana/minio-go/subscription","commits_url":"https://api.github.com/repos/harshavardhana/minio-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/harshavardhana/minio-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/harshavardhana/minio-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/harshavardhana/minio-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/harshavardhana/minio-go/contents/{+path}","compare_url":"https://api.github.com/repos/harshavardhana/minio-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harshavardhana/minio-go/merges","archive_url":"https://api.github.com/repos/harshavardhana/minio-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harshavardhana/minio-go/downloads","issues_url":"https://api.github.com/repos/harshavardhana/minio-go/issues{/number}","pulls_url":"https://api.github.com/repos/harshavardhana/minio-go/pulls{/number}","milestones_url":"https://api.github.com/repos/harshavardhana/minio-go/milestones{/number}","notifications_url":"https://api.github.com/repos/harshavardhana/minio-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harshavardhana/minio-go/labels{/name}","releases_url":"https://api.github.com/repos/harshavardhana/minio-go/releases{/id}","deployments_url":"https://api.github.com/repos/harshavardhana/minio-go/deployments","created_at":"2015-05-04T03:48:45Z","updated_at":"2015-05-23T22:56:15Z","pushed_at":"2016-03-26T00:35:41Z","git_url":"git://github.com/harshavardhana/minio-go.git","ssh_url":"git@github.com:harshavardhana/minio-go.git","clone_url":"https://github.com/harshavardhana/minio-go.git","svn_url":"https://github.com/harshavardhana/minio-go","homepage":"","size":3440,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"minio:master","ref":"master","sha":"015d1ed503b43a71a8dd4d97c00bff4b0c191bbd","user":{"login":"minio","id":695951,"avatar_url":"https://avatars.githubusercontent.com/u/695951?v=3","gravatar_id":"","url":"https://api.github.com/users/minio","html_url":"https://github.com/minio","followers_url":"https://api.github.com/users/minio/followers","following_url":"https://api.github.com/users/minio/following{/other_user}","gists_url":"https://api.github.com/users/minio/gists{/gist_id}","starred_url":"https://api.github.com/users/minio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minio/subscriptions","organizations_url":"https://api.github.com/users/minio/orgs","repos_url":"https://api.github.com/users/minio/repos","events_url":"https://api.github.com/users/minio/events{/privacy}","received_events_url":"https://api.github.com/users/minio/received_events","type":"Organization","site_admin":false},"repo":{"id":34933072,"name":"minio-go","full_name":"minio/minio-go","owner":{"login":"minio","id":695951,"avatar_url":"https://avatars.githubusercontent.com/u/695951?v=3","gravatar_id":"","url":"https://api.github.com/users/minio","html_url":"https://github.com/minio","followers_url":"https://api.github.com/users/minio/followers","following_url":"https://api.github.com/users/minio/following{/other_user}","gists_url":"https://api.github.com/users/minio/gists{/gist_id}","starred_url":"https://api.github.com/users/minio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minio/subscriptions","organizations_url":"https://api.github.com/users/minio/orgs","repos_url":"https://api.github.com/users/minio/repos","events_url":"https://api.github.com/users/minio/events{/privacy}","received_events_url":"https://api.github.com/users/minio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/minio/minio-go","description":"Minio Go Library for Amazon S3 compatible cloud storage","fork":false,"url":"https://api.github.com/repos/minio/minio-go","forks_url":"https://api.github.com/repos/minio/minio-go/forks","keys_url":"https://api.github.com/repos/minio/minio-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/minio/minio-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/minio/minio-go/teams","hooks_url":"https://api.github.com/repos/minio/minio-go/hooks","issue_events_url":"https://api.github.com/repos/minio/minio-go/issues/events{/number}","events_url":"https://api.github.com/repos/minio/minio-go/events","assignees_url":"https://api.github.com/repos/minio/minio-go/assignees{/user}","branches_url":"https://api.github.com/repos/minio/minio-go/branches{/branch}","tags_url":"https://api.github.com/repos/minio/minio-go/tags","blobs_url":"https://api.github.com/repos/minio/minio-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/minio/minio-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/minio/minio-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/minio/minio-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/minio/minio-go/statuses/{sha}","languages_url":"https://api.github.com/repos/minio/minio-go/languages","stargazers_url":"https://api.github.com/repos/minio/minio-go/stargazers","contributors_url":"https://api.github.com/repos/minio/minio-go/contributors","subscribers_url":"https://api.github.com/repos/minio/minio-go/subscribers","subscription_url":"https://api.github.com/repos/minio/minio-go/subscription","commits_url":"https://api.github.com/repos/minio/minio-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/minio/minio-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/minio/minio-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/minio/minio-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/minio/minio-go/contents/{+path}","compare_url":"https://api.github.com/repos/minio/minio-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/minio/minio-go/merges","archive_url":"https://api.github.com/repos/minio/minio-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/minio/minio-go/downloads","issues_url":"https://api.github.com/repos/minio/minio-go/issues{/number}","pulls_url":"https://api.github.com/repos/minio/minio-go/pulls{/number}","milestones_url":"https://api.github.com/repos/minio/minio-go/milestones{/number}","notifications_url":"https://api.github.com/repos/minio/minio-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/minio/minio-go/labels{/name}","releases_url":"https://api.github.com/repos/minio/minio-go/releases{/id}","deployments_url":"https://api.github.com/repos/minio/minio-go/deployments","created_at":"2015-05-02T02:36:46Z","updated_at":"2016-03-23T19:13:03Z","pushed_at":"2016-03-26T00:35:40Z","git_url":"git://github.com/minio/minio-go.git","ssh_url":"git@github.com:minio/minio-go.git","clone_url":"https://github.com/minio/minio-go.git","svn_url":"https://github.com/minio/minio-go","homepage":"http://minio.io/download/#minio-sdk","size":3511,"stargazers_count":87,"watchers_count":87,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":5,"forks":24,"open_issues":5,"watchers":87,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/minio/minio-go/pulls/365"},"html":{"href":"https://github.com/minio/minio-go/pull/365"},"issue":{"href":"https://api.github.com/repos/minio/minio-go/issues/365"},"comments":{"href":"https://api.github.com/repos/minio/minio-go/issues/365/comments"},"review_comments":{"href":"https://api.github.com/repos/minio/minio-go/pulls/365/comments"},"review_comment":{"href":"https://api.github.com/repos/minio/minio-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/minio/minio-go/pulls/365/commits"},"statuses":{"href":"https://api.github.com/repos/minio/minio-go/statuses/ea40e9a054aa1035187194147d75eae5ce7a4887"}}}}