{"action":"created","comment":{"url":"https://api.github.com/repos/astaxie/beego/pulls/comments/37706201","id":37706201,"diff_hunk":"@@ -922,6 +922,16 @@ func (w *responseWriter) WriteHeader(code int) {\n \tw.writer.WriteHeader(code)\n }\n \n+// Implements Flush()\n+func (w *responseWriter) Flush() {\n+        w.writer.(http.Flusher).Flush()","path":"router.go","position":6,"original_position":6,"commit_id":"0744371c13bfaec0da88e9a1c45691bf08ad4b9e","original_commit_id":"0744371c13bfaec0da88e9a1c45691bf08ad4b9e","user":{"login":"astaxie","id":233907,"avatar_url":"https://avatars.githubusercontent.com/u/233907?v=3","gravatar_id":"","url":"https://api.github.com/users/astaxie","html_url":"https://github.com/astaxie","followers_url":"https://api.github.com/users/astaxie/followers","following_url":"https://api.github.com/users/astaxie/following{/other_user}","gists_url":"https://api.github.com/users/astaxie/gists{/gist_id}","starred_url":"https://api.github.com/users/astaxie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astaxie/subscriptions","organizations_url":"https://api.github.com/users/astaxie/orgs","repos_url":"https://api.github.com/users/astaxie/repos","events_url":"https://api.github.com/users/astaxie/events{/privacy}","received_events_url":"https://api.github.com/users/astaxie/received_events","type":"User","site_admin":false},"body":"whether we need to assert first, otherwise if the w.writer not implemented http.Flusher will crash. the same as below","created_at":"2015-08-23T14:15:05Z","updated_at":"2015-08-23T14:15:05Z","html_url":"https://github.com/astaxie/beego/pull/1292#discussion_r37706201","pull_request_url":"https://api.github.com/repos/astaxie/beego/pulls/1292","_links":{"self":{"href":"https://api.github.com/repos/astaxie/beego/pulls/comments/37706201"},"html":{"href":"https://github.com/astaxie/beego/pull/1292#discussion_r37706201"},"pull_request":{"href":"https://api.github.com/repos/astaxie/beego/pulls/1292"}}},"pull_request":{"url":"https://api.github.com/repos/astaxie/beego/pulls/1292","id":41107710,"html_url":"https://github.com/astaxie/beego/pull/1292","diff_url":"https://github.com/astaxie/beego/pull/1292.diff","patch_url":"https://github.com/astaxie/beego/pull/1292.patch","issue_url":"https://api.github.com/repos/astaxie/beego/issues/1292","number":1292,"state":"open","locked":false,"title":"Implement Flush() and CloseNotify()","user":{"login":"paulmynarsky","id":11682793,"avatar_url":"https://avatars.githubusercontent.com/u/11682793?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmynarsky","html_url":"https://github.com/paulmynarsky","followers_url":"https://api.github.com/users/paulmynarsky/followers","following_url":"https://api.github.com/users/paulmynarsky/following{/other_user}","gists_url":"https://api.github.com/users/paulmynarsky/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmynarsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmynarsky/subscriptions","organizations_url":"https://api.github.com/users/paulmynarsky/orgs","repos_url":"https://api.github.com/users/paulmynarsky/repos","events_url":"https://api.github.com/users/paulmynarsky/events{/privacy}","received_events_url":"https://api.github.com/users/paulmynarsky/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-29T10:23:32Z","updated_at":"2015-08-23T14:15:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fb3e186701d181ae6330426c0942f5465abf781a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/astaxie/beego/pulls/1292/commits","review_comments_url":"https://api.github.com/repos/astaxie/beego/pulls/1292/comments","review_comment_url":"https://api.github.com/repos/astaxie/beego/pulls/comments{/number}","comments_url":"https://api.github.com/repos/astaxie/beego/issues/1292/comments","statuses_url":"https://api.github.com/repos/astaxie/beego/statuses/0744371c13bfaec0da88e9a1c45691bf08ad4b9e","head":{"label":"paulmynarsky:master","ref":"master","sha":"0744371c13bfaec0da88e9a1c45691bf08ad4b9e","user":{"login":"paulmynarsky","id":11682793,"avatar_url":"https://avatars.githubusercontent.com/u/11682793?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmynarsky","html_url":"https://github.com/paulmynarsky","followers_url":"https://api.github.com/users/paulmynarsky/followers","following_url":"https://api.github.com/users/paulmynarsky/following{/other_user}","gists_url":"https://api.github.com/users/paulmynarsky/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmynarsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmynarsky/subscriptions","organizations_url":"https://api.github.com/users/paulmynarsky/orgs","repos_url":"https://api.github.com/users/paulmynarsky/repos","events_url":"https://api.github.com/users/paulmynarsky/events{/privacy}","received_events_url":"https://api.github.com/users/paulmynarsky/received_events","type":"User","site_admin":false},"repo":{"id":39887288,"name":"beego","full_name":"paulmynarsky/beego","owner":{"login":"paulmynarsky","id":11682793,"avatar_url":"https://avatars.githubusercontent.com/u/11682793?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmynarsky","html_url":"https://github.com/paulmynarsky","followers_url":"https://api.github.com/users/paulmynarsky/followers","following_url":"https://api.github.com/users/paulmynarsky/following{/other_user}","gists_url":"https://api.github.com/users/paulmynarsky/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmynarsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmynarsky/subscriptions","organizations_url":"https://api.github.com/users/paulmynarsky/orgs","repos_url":"https://api.github.com/users/paulmynarsky/repos","events_url":"https://api.github.com/users/paulmynarsky/events{/privacy}","received_events_url":"https://api.github.com/users/paulmynarsky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulmynarsky/beego","description":"beego is an open-source, high-performance web framework for the Go programming language.","fork":true,"url":"https://api.github.com/repos/paulmynarsky/beego","forks_url":"https://api.github.com/repos/paulmynarsky/beego/forks","keys_url":"https://api.github.com/repos/paulmynarsky/beego/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulmynarsky/beego/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulmynarsky/beego/teams","hooks_url":"https://api.github.com/repos/paulmynarsky/beego/hooks","issue_events_url":"https://api.github.com/repos/paulmynarsky/beego/issues/events{/number}","events_url":"https://api.github.com/repos/paulmynarsky/beego/events","assignees_url":"https://api.github.com/repos/paulmynarsky/beego/assignees{/user}","branches_url":"https://api.github.com/repos/paulmynarsky/beego/branches{/branch}","tags_url":"https://api.github.com/repos/paulmynarsky/beego/tags","blobs_url":"https://api.github.com/repos/paulmynarsky/beego/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulmynarsky/beego/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulmynarsky/beego/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulmynarsky/beego/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulmynarsky/beego/statuses/{sha}","languages_url":"https://api.github.com/repos/paulmynarsky/beego/languages","stargazers_url":"https://api.github.com/repos/paulmynarsky/beego/stargazers","contributors_url":"https://api.github.com/repos/paulmynarsky/beego/contributors","subscribers_url":"https://api.github.com/repos/paulmynarsky/beego/subscribers","subscription_url":"https://api.github.com/repos/paulmynarsky/beego/subscription","commits_url":"https://api.github.com/repos/paulmynarsky/beego/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulmynarsky/beego/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulmynarsky/beego/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulmynarsky/beego/issues/comments{/number}","contents_url":"https://api.github.com/repos/paulmynarsky/beego/contents/{+path}","compare_url":"https://api.github.com/repos/paulmynarsky/beego/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulmynarsky/beego/merges","archive_url":"https://api.github.com/repos/paulmynarsky/beego/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulmynarsky/beego/downloads","issues_url":"https://api.github.com/repos/paulmynarsky/beego/issues{/number}","pulls_url":"https://api.github.com/repos/paulmynarsky/beego/pulls{/number}","milestones_url":"https://api.github.com/repos/paulmynarsky/beego/milestones{/number}","notifications_url":"https://api.github.com/repos/paulmynarsky/beego/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulmynarsky/beego/labels{/name}","releases_url":"https://api.github.com/repos/paulmynarsky/beego/releases{/id}","created_at":"2015-07-29T10:17:45Z","updated_at":"2015-07-29T10:17:46Z","pushed_at":"2015-07-29T10:20:00Z","git_url":"git://github.com/paulmynarsky/beego.git","ssh_url":"git@github.com:paulmynarsky/beego.git","clone_url":"https://github.com/paulmynarsky/beego.git","svn_url":"https://github.com/paulmynarsky/beego","homepage":"beego.me","size":5654,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"astaxie:develop","ref":"develop","sha":"4857e38471f76c71a2804da15ff55ad2118db95d","user":{"login":"astaxie","id":233907,"avatar_url":"https://avatars.githubusercontent.com/u/233907?v=3","gravatar_id":"","url":"https://api.github.com/users/astaxie","html_url":"https://github.com/astaxie","followers_url":"https://api.github.com/users/astaxie/followers","following_url":"https://api.github.com/users/astaxie/following{/other_user}","gists_url":"https://api.github.com/users/astaxie/gists{/gist_id}","starred_url":"https://api.github.com/users/astaxie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astaxie/subscriptions","organizations_url":"https://api.github.com/users/astaxie/orgs","repos_url":"https://api.github.com/users/astaxie/repos","events_url":"https://api.github.com/users/astaxie/events{/privacy}","received_events_url":"https://api.github.com/users/astaxie/received_events","type":"User","site_admin":false},"repo":{"id":3577919,"name":"beego","full_name":"astaxie/beego","owner":{"login":"astaxie","id":233907,"avatar_url":"https://avatars.githubusercontent.com/u/233907?v=3","gravatar_id":"","url":"https://api.github.com/users/astaxie","html_url":"https://github.com/astaxie","followers_url":"https://api.github.com/users/astaxie/followers","following_url":"https://api.github.com/users/astaxie/following{/other_user}","gists_url":"https://api.github.com/users/astaxie/gists{/gist_id}","starred_url":"https://api.github.com/users/astaxie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astaxie/subscriptions","organizations_url":"https://api.github.com/users/astaxie/orgs","repos_url":"https://api.github.com/users/astaxie/repos","events_url":"https://api.github.com/users/astaxie/events{/privacy}","received_events_url":"https://api.github.com/users/astaxie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/astaxie/beego","description":"beego is an open-source, high-performance web framework for the Go programming language.","fork":false,"url":"https://api.github.com/repos/astaxie/beego","forks_url":"https://api.github.com/repos/astaxie/beego/forks","keys_url":"https://api.github.com/repos/astaxie/beego/keys{/key_id}","collaborators_url":"https://api.github.com/repos/astaxie/beego/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/astaxie/beego/teams","hooks_url":"https://api.github.com/repos/astaxie/beego/hooks","issue_events_url":"https://api.github.com/repos/astaxie/beego/issues/events{/number}","events_url":"https://api.github.com/repos/astaxie/beego/events","assignees_url":"https://api.github.com/repos/astaxie/beego/assignees{/user}","branches_url":"https://api.github.com/repos/astaxie/beego/branches{/branch}","tags_url":"https://api.github.com/repos/astaxie/beego/tags","blobs_url":"https://api.github.com/repos/astaxie/beego/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/astaxie/beego/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/astaxie/beego/git/refs{/sha}","trees_url":"https://api.github.com/repos/astaxie/beego/git/trees{/sha}","statuses_url":"https://api.github.com/repos/astaxie/beego/statuses/{sha}","languages_url":"https://api.github.com/repos/astaxie/beego/languages","stargazers_url":"https://api.github.com/repos/astaxie/beego/stargazers","contributors_url":"https://api.github.com/repos/astaxie/beego/contributors","subscribers_url":"https://api.github.com/repos/astaxie/beego/subscribers","subscription_url":"https://api.github.com/repos/astaxie/beego/subscription","commits_url":"https://api.github.com/repos/astaxie/beego/commits{/sha}","git_commits_url":"https://api.github.com/repos/astaxie/beego/git/commits{/sha}","comments_url":"https://api.github.com/repos/astaxie/beego/comments{/number}","issue_comment_url":"https://api.github.com/repos/astaxie/beego/issues/comments{/number}","contents_url":"https://api.github.com/repos/astaxie/beego/contents/{+path}","compare_url":"https://api.github.com/repos/astaxie/beego/compare/{base}...{head}","merges_url":"https://api.github.com/repos/astaxie/beego/merges","archive_url":"https://api.github.com/repos/astaxie/beego/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/astaxie/beego/downloads","issues_url":"https://api.github.com/repos/astaxie/beego/issues{/number}","pulls_url":"https://api.github.com/repos/astaxie/beego/pulls{/number}","milestones_url":"https://api.github.com/repos/astaxie/beego/milestones{/number}","notifications_url":"https://api.github.com/repos/astaxie/beego/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/astaxie/beego/labels{/name}","releases_url":"https://api.github.com/repos/astaxie/beego/releases{/id}","created_at":"2012-02-29T02:32:08Z","updated_at":"2015-08-23T13:43:25Z","pushed_at":"2015-08-23T14:13:15Z","git_url":"git://github.com/astaxie/beego.git","ssh_url":"git@github.com:astaxie/beego.git","clone_url":"https://github.com/astaxie/beego.git","svn_url":"https://github.com/astaxie/beego","homepage":"beego.me","size":9945,"stargazers_count":4986,"watchers_count":4986,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1255,"mirror_url":null,"open_issues_count":212,"forks":1255,"open_issues":212,"watchers":4986,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/astaxie/beego/pulls/1292"},"html":{"href":"https://github.com/astaxie/beego/pull/1292"},"issue":{"href":"https://api.github.com/repos/astaxie/beego/issues/1292"},"comments":{"href":"https://api.github.com/repos/astaxie/beego/issues/1292/comments"},"review_comments":{"href":"https://api.github.com/repos/astaxie/beego/pulls/1292/comments"},"review_comment":{"href":"https://api.github.com/repos/astaxie/beego/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/astaxie/beego/pulls/1292/commits"},"statuses":{"href":"https://api.github.com/repos/astaxie/beego/statuses/0744371c13bfaec0da88e9a1c45691bf08ad4b9e"}}}}