{"action":"created","issue":{"url":"https://api.github.com/repos/likexian/stathub-go/issues/5","labels_url":"https://api.github.com/repos/likexian/stathub-go/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/likexian/stathub-go/issues/5/comments","events_url":"https://api.github.com/repos/likexian/stathub-go/issues/5/events","html_url":"https://github.com/likexian/stathub-go/pull/5","id":69293950,"number":5,"title":"https support, fixed #2","user":{"login":"Bluek404","id":6631572,"avatar_url":"https://avatars.githubusercontent.com/u/6631572?v=3","gravatar_id":"","url":"https://api.github.com/users/Bluek404","html_url":"https://github.com/Bluek404","followers_url":"https://api.github.com/users/Bluek404/followers","following_url":"https://api.github.com/users/Bluek404/following{/other_user}","gists_url":"https://api.github.com/users/Bluek404/gists{/gist_id}","starred_url":"https://api.github.com/users/Bluek404/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bluek404/subscriptions","organizations_url":"https://api.github.com/users/Bluek404/orgs","repos_url":"https://api.github.com/users/Bluek404/repos","events_url":"https://api.github.com/users/Bluek404/events{/privacy}","received_events_url":"https://api.github.com/users/Bluek404/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-18T10:16:07Z","updated_at":"2015-04-18T10:48:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/likexian/stathub-go/pulls/5","html_url":"https://github.com/likexian/stathub-go/pull/5","diff_url":"https://github.com/likexian/stathub-go/pull/5.diff","patch_url":"https://github.com/likexian/stathub-go/pull/5.patch"},"body":"fixed #2\r\n\r\n因为原先的代码没经过go fmt\r\n于是擅自格式化了一下，不知道可不可以\r\n\r\n添加https支持\r\nserver的配置里多出一个“tls”选项，类型为bool\r\n如果为true则启用https\r\n需要在配置文件夹内放上`cert.pem`和`key.pem`，可以用`$GOROOT/src/crypto/tls/generate_cert.go`生成\r\n\r\n因为是支持自签名证书，所以客户端运行目录下也要放上同一个`cert.pem`来防止中间人攻击\r\n（注意：客户端配置里的url必须为`https`）\r\n\r\n-------------------------\r\n以及代码没经过严格测试，还望作者自己测试一下\r\n"},"comment":{"url":"https://api.github.com/repos/likexian/stathub-go/issues/comments/94154029","html_url":"https://github.com/likexian/stathub-go/pull/5#issuecomment-94154029","issue_url":"https://api.github.com/repos/likexian/stathub-go/issues/5","id":94154029,"user":{"login":"likexian","id":1175571,"avatar_url":"https://avatars.githubusercontent.com/u/1175571?v=3","gravatar_id":"","url":"https://api.github.com/users/likexian","html_url":"https://github.com/likexian","followers_url":"https://api.github.com/users/likexian/followers","following_url":"https://api.github.com/users/likexian/following{/other_user}","gists_url":"https://api.github.com/users/likexian/gists{/gist_id}","starred_url":"https://api.github.com/users/likexian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/likexian/subscriptions","organizations_url":"https://api.github.com/users/likexian/orgs","repos_url":"https://api.github.com/users/likexian/repos","events_url":"https://api.github.com/users/likexian/events{/privacy}","received_events_url":"https://api.github.com/users/likexian/received_events","type":"User","site_admin":false},"created_at":"2015-04-18T10:48:08Z","updated_at":"2015-04-18T10:48:08Z","body":"bluek好效率啊，这么快就搞定了，赞！"}}