{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/comments/45830743","id":45830743,"diff_hunk":"@@ -629,7 +630,13 @@ func (b BlobStorageClient) CreateBlockBlob(container, name string) error {\n func (b BlobStorageClient) CreateBlockBlobFromReader(container, name string, size uint64, blob io.Reader) error {\n \tpath := fmt.Sprintf(\"%s/%s\", container, name)\n \turi := b.client.getEndpoint(blobServiceName, path, url.Values{})\n+\tsplitted := strings.Split(name, \".\")\n+\tif len(splitted) == 0 {\n+\t\tsplitted = []string{\"\"}","path":"storage/blob.go","position":14,"original_position":14,"commit_id":"2f964eb8703514223c58c4c08c032220de6c0301","original_commit_id":"2f964eb8703514223c58c4c08c032220de6c0301","user":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"body":"instead of this empty slice hack can you please do:\r\n\r\n    if len(splitted) > 1 { headers[\"Content-Type\"] = mime.TypeByExtension(\".\" + splitted[len(splitted)-1])  }","created_at":"2015-11-25T05:26:16Z","updated_at":"2015-11-25T05:26:16Z","html_url":"https://github.com/Azure/azure-sdk-for-go/pull/242#discussion_r45830743","pull_request_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/242","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/comments/45830743"},"html":{"href":"https://github.com/Azure/azure-sdk-for-go/pull/242#discussion_r45830743"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/242"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/242","id":51750839,"html_url":"https://github.com/Azure/azure-sdk-for-go/pull/242","diff_url":"https://github.com/Azure/azure-sdk-for-go/pull/242.diff","patch_url":"https://github.com/Azure/azure-sdk-for-go/pull/242.patch","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/issues/242","number":242,"state":"open","locked":false,"title":"Automatically detect mime type of block uploads","user":{"login":"kjnsn","id":7954393,"avatar_url":"https://avatars.githubusercontent.com/u/7954393?v=3","gravatar_id":"","url":"https://api.github.com/users/kjnsn","html_url":"https://github.com/kjnsn","followers_url":"https://api.github.com/users/kjnsn/followers","following_url":"https://api.github.com/users/kjnsn/following{/other_user}","gists_url":"https://api.github.com/users/kjnsn/gists{/gist_id}","starred_url":"https://api.github.com/users/kjnsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjnsn/subscriptions","organizations_url":"https://api.github.com/users/kjnsn/orgs","repos_url":"https://api.github.com/users/kjnsn/repos","events_url":"https://api.github.com/users/kjnsn/events{/privacy}","received_events_url":"https://api.github.com/users/kjnsn/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-25T04:14:11Z","updated_at":"2015-11-25T05:26:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aedf8ef36fc226b23c385286acb76fe943e0fa86","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/242/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/242/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/issues/242/comments","statuses_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/statuses/2f964eb8703514223c58c4c08c032220de6c0301","head":{"label":"kjnsn:master","ref":"master","sha":"2f964eb8703514223c58c4c08c032220de6c0301","user":{"login":"kjnsn","id":7954393,"avatar_url":"https://avatars.githubusercontent.com/u/7954393?v=3","gravatar_id":"","url":"https://api.github.com/users/kjnsn","html_url":"https://github.com/kjnsn","followers_url":"https://api.github.com/users/kjnsn/followers","following_url":"https://api.github.com/users/kjnsn/following{/other_user}","gists_url":"https://api.github.com/users/kjnsn/gists{/gist_id}","starred_url":"https://api.github.com/users/kjnsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjnsn/subscriptions","organizations_url":"https://api.github.com/users/kjnsn/orgs","repos_url":"https://api.github.com/users/kjnsn/repos","events_url":"https://api.github.com/users/kjnsn/events{/privacy}","received_events_url":"https://api.github.com/users/kjnsn/received_events","type":"User","site_admin":false},"repo":{"id":46833865,"name":"azure-sdk-for-go","full_name":"kjnsn/azure-sdk-for-go","owner":{"login":"kjnsn","id":7954393,"avatar_url":"https://avatars.githubusercontent.com/u/7954393?v=3","gravatar_id":"","url":"https://api.github.com/users/kjnsn","html_url":"https://github.com/kjnsn","followers_url":"https://api.github.com/users/kjnsn/followers","following_url":"https://api.github.com/users/kjnsn/following{/other_user}","gists_url":"https://api.github.com/users/kjnsn/gists{/gist_id}","starred_url":"https://api.github.com/users/kjnsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjnsn/subscriptions","organizations_url":"https://api.github.com/users/kjnsn/orgs","repos_url":"https://api.github.com/users/kjnsn/repos","events_url":"https://api.github.com/users/kjnsn/events{/privacy}","received_events_url":"https://api.github.com/users/kjnsn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kjnsn/azure-sdk-for-go","description":"Microsoft Azure SDK for Go","fork":true,"url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go","forks_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/forks","keys_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/teams","hooks_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/hooks","issue_events_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/issues/events{/number}","events_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/events","assignees_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/assignees{/user}","branches_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/branches{/branch}","tags_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/tags","blobs_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/statuses/{sha}","languages_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/languages","stargazers_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/stargazers","contributors_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/contributors","subscribers_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/subscribers","subscription_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/subscription","commits_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/contents/{+path}","compare_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/merges","archive_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/downloads","issues_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/issues{/number}","pulls_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/pulls{/number}","milestones_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/milestones{/number}","notifications_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/labels{/name}","releases_url":"https://api.github.com/repos/kjnsn/azure-sdk-for-go/releases{/id}","created_at":"2015-11-25T03:01:55Z","updated_at":"2015-11-25T03:01:57Z","pushed_at":"2015-11-25T04:12:11Z","git_url":"git://github.com/kjnsn/azure-sdk-for-go.git","ssh_url":"git@github.com:kjnsn/azure-sdk-for-go.git","clone_url":"https://github.com/kjnsn/azure-sdk-for-go.git","svn_url":"https://github.com/kjnsn/azure-sdk-for-go","homepage":"","size":1285,"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":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"3b480eaaf6b4236d43a3c06cba969da6f53c8b66","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":22855240,"name":"azure-sdk-for-go","full_name":"Azure/azure-sdk-for-go","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-sdk-for-go","description":"Microsoft Azure SDK for Go","fork":false,"url":"https://api.github.com/repos/Azure/azure-sdk-for-go","forks_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/forks","keys_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/teams","hooks_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/events","assignees_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/tags","blobs_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/subscription","commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/merges","archive_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/downloads","issues_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/releases{/id}","created_at":"2014-08-11T21:18:43Z","updated_at":"2015-11-24T10:55:18Z","pushed_at":"2015-11-25T04:14:11Z","git_url":"git://github.com/Azure/azure-sdk-for-go.git","ssh_url":"git@github.com:Azure/azure-sdk-for-go.git","clone_url":"https://github.com/Azure/azure-sdk-for-go.git","svn_url":"https://github.com/Azure/azure-sdk-for-go","homepage":"","size":1540,"stargazers_count":112,"watchers_count":112,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"open_issues_count":28,"forks":56,"open_issues":28,"watchers":112,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/242"},"html":{"href":"https://github.com/Azure/azure-sdk-for-go/pull/242"},"issue":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/issues/242"},"comments":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/issues/242/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/242/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/242/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/statuses/2f964eb8703514223c58c4c08c032220de6c0301"}}}}